Skip to content

Commit 80b0225

Browse files
committed
Merge branch 'v8-3.1' into v0.4
2 parents 70dd6d4 + cee4ce3 commit 80b0225

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

deps/v8/src/objects.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ enum CompareResult {
585585

586586
class StringStream;
587587
class ObjectVisitor;
588+
class Failure;
588589

589590
struct ValueInfo : public Malloced {
590591
ValueInfo() : type(FIRST_TYPE), ptr(NULL), str(NULL), number(0) { }
@@ -611,6 +612,10 @@ class MaybeObject BASE_EMBEDDED {
611612
*obj = reinterpret_cast<Object*>(this);
612613
return true;
613614
}
615+
inline Failure* ToFailureUnchecked() {
616+
ASSERT(IsFailure());
617+
return reinterpret_cast<Failure*>(this);
618+
}
614619
inline Object* ToObjectUnchecked() {
615620
ASSERT(!IsFailure());
616621
return reinterpret_cast<Object*>(this);

deps/v8/src/top.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2006-2008 the V8 project authors. All rights reserved.
1+
// Copyright 2011 the V8 project authors. All rights reserved.
22
// Redistribution and use in source and binary forms, with or without
33
// modification, are permitted provided that the following conditions are
44
// met:
@@ -740,6 +740,7 @@ Failure* Top::ReThrow(MaybeObject* exception, MessageLocation* location) {
740740

741741
// Set the exception being re-thrown.
742742
set_pending_exception(exception);
743+
if (exception->IsFailure()) return exception->ToFailureUnchecked();
743744
return Failure::Exception();
744745
}
745746

deps/v8/src/version.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define MAJOR_VERSION 3
3636
#define MINOR_VERSION 1
3737
#define BUILD_NUMBER 8
38-
#define PATCH_LEVEL 14
38+
#define PATCH_LEVEL 16
3939
#define CANDIDATE_VERSION false
4040

4141
// Define SONAME to have the SCons build the put a specific SONAME into the

deps/v8/src/x64/assembler-x64.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ void Assembler::jmp(NearLabel* L) {
13791379
EnsureSpace ensure_space(this);
13801380
last_pc_ = pc_;
13811381
if (L->is_bound()) {
1382-
const int short_size = sizeof(int8_t);
1382+
const int short_size = 2;
13831383
int offs = L->pos() - pc_offset();
13841384
ASSERT(offs <= 0);
13851385
ASSERT(is_int8(offs - short_size));

0 commit comments

Comments
 (0)