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

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

Issue 1524673002: [fullcodegen] Add support for %_GetSuperConstructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 3617 matching lines...) Expand 10 before | Expand all | Expand 10 after
3628 3628
3629 __ AssertString(eax); 3629 __ AssertString(eax);
3630 3630
3631 __ mov(eax, FieldOperand(eax, String::kHashFieldOffset)); 3631 __ mov(eax, FieldOperand(eax, String::kHashFieldOffset));
3632 __ IndexFromHash(eax, eax); 3632 __ IndexFromHash(eax, eax);
3633 3633
3634 context()->Plug(eax); 3634 context()->Plug(eax);
3635 } 3635 }
3636 3636
3637 3637
3638 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3639 ZoneList<Expression*>* args = expr->arguments();
3640 DCHECK_EQ(1, args->length());
3641 VisitForAccumulatorValue(args->at(0));
3642 __ AssertFunction(eax);
3643 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset));
3644 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset));
3645 context()->Plug(eax);
3646 }
3647
3648
3638 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { 3649 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) {
3639 Label bailout, done, one_char_separator, long_separator, 3650 Label bailout, done, one_char_separator, long_separator,
3640 non_trivial_array, not_size_one_array, loop, 3651 non_trivial_array, not_size_one_array, loop,
3641 loop_1, loop_1_condition, loop_2, loop_2_entry, loop_3, loop_3_entry; 3652 loop_1, loop_1_condition, loop_2, loop_2_entry, loop_3, loop_3_entry;
3642 3653
3643 ZoneList<Expression*>* args = expr->arguments(); 3654 ZoneList<Expression*>* args = expr->arguments();
3644 DCHECK(args->length() == 2); 3655 DCHECK(args->length() == 2);
3645 // We will leave the separator on the stack until the end of the function. 3656 // We will leave the separator on the stack until the end of the function.
3646 VisitForStackValue(args->at(1)); 3657 VisitForStackValue(args->at(1));
3647 // Load this to eax (= array) 3658 // Load this to eax (= array)
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
4754 Assembler::target_address_at(call_target_address, 4765 Assembler::target_address_at(call_target_address,
4755 unoptimized_code)); 4766 unoptimized_code));
4756 return OSR_AFTER_STACK_CHECK; 4767 return OSR_AFTER_STACK_CHECK;
4757 } 4768 }
4758 4769
4759 4770
4760 } // namespace internal 4771 } // namespace internal
4761 } // namespace v8 4772 } // namespace v8
4762 4773
4763 #endif // V8_TARGET_ARCH_IA32 4774 #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