Index: test/cctest/test-assembler-ia32.cc |
=================================================================== |
--- test/cctest/test-assembler-ia32.cc (revision 5696) |
+++ test/cctest/test-assembler-ia32.cc (working copy) |
@@ -71,7 +71,8 @@ |
assm.GetCode(&desc); |
Object* code = Heap::CreateCode(desc, |
Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value())); |
+ Handle<Object>(Heap::undefined_value()))-> |
+ ToObjectChecked(); |
CHECK(code->IsCode()); |
#ifdef DEBUG |
Code::cast(code)->Print(); |
@@ -108,7 +109,8 @@ |
assm.GetCode(&desc); |
Object* code = Heap::CreateCode(desc, |
Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value())); |
+ Handle<Object>(Heap::undefined_value()))-> |
+ ToObjectChecked(); |
CHECK(code->IsCode()); |
#ifdef DEBUG |
Code::cast(code)->Print(); |
@@ -147,9 +149,11 @@ |
CodeDesc desc; |
assm.GetCode(&desc); |
- Object* code = Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value())); |
+ Object* code = Heap::CreateCode( |
+ desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>(Heap::undefined_value()))->ToObjectChecked(); |
+ |
CHECK(code->IsCode()); |
#ifdef DEBUG |
Code::cast(code)->Print(); |
@@ -180,10 +184,10 @@ |
CodeDesc desc; |
assm.GetCode(&desc); |
- Code* code = |
- Code::cast(Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value()))); |
+ Code* code = Code::cast(Heap::CreateCode( |
+ desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>(Heap::undefined_value()))->ToObjectChecked()); |
// don't print the code - our disassembler can't handle cvttss2si |
// instead print bytes |
Disassembler::Dump(stdout, |
@@ -214,10 +218,10 @@ |
CodeDesc desc; |
assm.GetCode(&desc); |
- Code* code = |
- Code::cast(Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value()))); |
+ Code* code = Code::cast(Heap::CreateCode( |
+ desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>(Heap::undefined_value()))->ToObjectChecked()); |
// don't print the code - our disassembler can't handle cvttsd2si |
// instead print bytes |
Disassembler::Dump(stdout, |
@@ -243,10 +247,10 @@ |
CodeDesc desc; |
assm.GetCode(&desc); |
- Code* code = |
- Code::cast(Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value()))); |
+ Code* code = Code::cast(Heap::CreateCode( |
+ desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>(Heap::undefined_value()))->ToObjectChecked()); |
F0 f = FUNCTION_CAST<F0>(code->entry()); |
int res = f(); |
CHECK_EQ(42, res); |
@@ -280,10 +284,10 @@ |
CodeDesc desc; |
assm.GetCode(&desc); |
- Code* code = |
- Code::cast(Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value()))); |
+ Code* code = Code::cast(Heap::CreateCode( |
+ desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>(Heap::undefined_value()))->ToObjectChecked()); |
#ifdef DEBUG |
::printf("\n---\n"); |
// don't print the code - our disassembler can't handle SSE instructions |
@@ -320,10 +324,10 @@ |
__ ret(0); |
CodeDesc desc; |
assm.GetCode(&desc); |
- Code* code = |
- Code::cast(Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value()))); |
+ Code* code = Code::cast(Heap::CreateCode( |
+ desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>(Heap::undefined_value()))->ToObjectChecked()); |
CHECK(code->IsCode()); |
#ifdef DEBUG |
Code::cast(code)->Print(); |
@@ -375,10 +379,10 @@ |
CodeDesc desc; |
assm.GetCode(&desc); |
- Code* code = |
- Code::cast(Heap::CreateCode(desc, |
- Code::ComputeFlags(Code::STUB), |
- Handle<Object>(Heap::undefined_value()))); |
+ Code* code = Code::cast(Heap::CreateCode( |
+ desc, |
+ Code::ComputeFlags(Code::STUB), |
+ Handle<Object>(Heap::undefined_value()))->ToObjectChecked()); |
CHECK(code->IsCode()); |
#ifdef DEBUG |
Code::cast(code)->Print(); |