OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4746 } else { | 4746 } else { |
4747 __ Push(isolate()->factory()->false_value()); | 4747 __ Push(isolate()->factory()->false_value()); |
4748 } | 4748 } |
4749 __ bind(&done); | 4749 __ bind(&done); |
4750 } | 4750 } |
4751 break; | 4751 break; |
4752 } | 4752 } |
4753 | 4753 |
4754 case Token::TYPEOF: { | 4754 case Token::TYPEOF: { |
4755 Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); | 4755 Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); |
4756 { StackValueContext context(this); | 4756 { |
| 4757 AccumulatorValueContext context(this); |
4757 VisitForTypeofValue(expr->expression()); | 4758 VisitForTypeofValue(expr->expression()); |
4758 } | 4759 } |
4759 __ CallRuntime(Runtime::kTypeof, 1); | 4760 __ mov(ebx, eax); |
| 4761 TypeofStub typeof_stub(isolate()); |
| 4762 __ CallStub(&typeof_stub); |
4760 context()->Plug(eax); | 4763 context()->Plug(eax); |
4761 break; | 4764 break; |
4762 } | 4765 } |
4763 | 4766 |
4764 default: | 4767 default: |
4765 UNREACHABLE(); | 4768 UNREACHABLE(); |
4766 } | 4769 } |
4767 } | 4770 } |
4768 | 4771 |
4769 | 4772 |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5399 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5402 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5400 Assembler::target_address_at(call_target_address, | 5403 Assembler::target_address_at(call_target_address, |
5401 unoptimized_code)); | 5404 unoptimized_code)); |
5402 return OSR_AFTER_STACK_CHECK; | 5405 return OSR_AFTER_STACK_CHECK; |
5403 } | 5406 } |
5404 | 5407 |
5405 | 5408 |
5406 } } // namespace v8::internal | 5409 } } // namespace v8::internal |
5407 | 5410 |
5408 #endif // V8_TARGET_ARCH_IA32 | 5411 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |