Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.cc

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after
3022 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { 3022 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3023 ZoneList<Expression*>* args = expr->arguments(); 3023 ZoneList<Expression*>* args = expr->arguments();
3024 DCHECK_EQ(1, args->length()); 3024 DCHECK_EQ(1, args->length());
3025 VisitForAccumulatorValue(args->at(0)); 3025 VisitForAccumulatorValue(args->at(0));
3026 __ AssertFunction(eax); 3026 __ AssertFunction(eax);
3027 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); 3027 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset));
3028 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); 3028 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset));
3029 context()->Plug(eax); 3029 context()->Plug(eax);
3030 } 3030 }
3031 3031
3032 void FullCodeGenerator::EmitGetOrdinaryHasInstance(CallRuntime* expr) {
3033 DCHECK_EQ(0, expr->arguments()->length());
3034 __ mov(eax, NativeContextOperand());
3035 __ mov(eax, ContextOperand(eax, Context::ORDINARY_HAS_INSTANCE_INDEX));
3036 context()->Plug(eax);
3037 }
3038
3039 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { 3032 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
3040 DCHECK(expr->arguments()->length() == 0); 3033 DCHECK(expr->arguments()->length() == 0);
3041 ExternalReference debug_is_active = 3034 ExternalReference debug_is_active =
3042 ExternalReference::debug_is_active_address(isolate()); 3035 ExternalReference::debug_is_active_address(isolate());
3043 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); 3036 __ movzx_b(eax, Operand::StaticVariable(debug_is_active));
3044 __ SmiTag(eax); 3037 __ SmiTag(eax);
3045 context()->Plug(eax); 3038 context()->Plug(eax);
3046 } 3039 }
3047 3040
3048 3041
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
3829 isolate->builtins()->OnStackReplacement()->entry(), 3822 isolate->builtins()->OnStackReplacement()->entry(),
3830 Assembler::target_address_at(call_target_address, unoptimized_code)); 3823 Assembler::target_address_at(call_target_address, unoptimized_code));
3831 return ON_STACK_REPLACEMENT; 3824 return ON_STACK_REPLACEMENT;
3832 } 3825 }
3833 3826
3834 3827
3835 } // namespace internal 3828 } // namespace internal
3836 } // namespace v8 3829 } // namespace v8
3837 3830
3838 #endif // V8_TARGET_ARCH_IA32 3831 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698