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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
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 3610 matching lines...) Expand 10 before | Expand all | Expand 10 after
3621 3621
3622 __ AssertString(eax); 3622 __ AssertString(eax);
3623 3623
3624 __ mov(eax, FieldOperand(eax, String::kHashFieldOffset)); 3624 __ mov(eax, FieldOperand(eax, String::kHashFieldOffset));
3625 __ IndexFromHash(eax, eax); 3625 __ IndexFromHash(eax, eax);
3626 3626
3627 context()->Plug(eax); 3627 context()->Plug(eax);
3628 } 3628 }
3629 3629
3630 3630
3631 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
3632 ZoneList<Expression*>* args = expr->arguments();
3633 DCHECK_EQ(1, args->length());
3634 VisitForAccumulatorValue(args->at(0));
3635 __ AssertFunction(eax);
3636 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset));
3637 __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset));
3638 context()->Plug(eax);
3639 }
3640
3641
3631 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { 3642 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) {
3632 Label bailout, done, one_char_separator, long_separator, 3643 Label bailout, done, one_char_separator, long_separator,
3633 non_trivial_array, not_size_one_array, loop, 3644 non_trivial_array, not_size_one_array, loop,
3634 loop_1, loop_1_condition, loop_2, loop_2_entry, loop_3, loop_3_entry; 3645 loop_1, loop_1_condition, loop_2, loop_2_entry, loop_3, loop_3_entry;
3635 3646
3636 ZoneList<Expression*>* args = expr->arguments(); 3647 ZoneList<Expression*>* args = expr->arguments();
3637 DCHECK(args->length() == 2); 3648 DCHECK(args->length() == 2);
3638 // We will leave the separator on the stack until the end of the function. 3649 // We will leave the separator on the stack until the end of the function.
3639 VisitForStackValue(args->at(1)); 3650 VisitForStackValue(args->at(1));
3640 // Load this to eax (= array) 3651 // Load this to eax (= array)
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
4747 Assembler::target_address_at(call_target_address, 4758 Assembler::target_address_at(call_target_address,
4748 unoptimized_code)); 4759 unoptimized_code));
4749 return OSR_AFTER_STACK_CHECK; 4760 return OSR_AFTER_STACK_CHECK;
4750 } 4761 }
4751 4762
4752 4763
4753 } // namespace internal 4764 } // namespace internal
4754 } // namespace v8 4765 } // namespace v8
4755 4766
4756 #endif // V8_TARGET_ARCH_X87 4767 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698