| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |