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

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

Issue 700513002: Version 3.29.88.12 (merged r24927, r24987, r25060, r24950, r24993) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.29
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
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 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 CallIC(ic); 2780 CallIC(ic);
2781 2781
2782 RecordJSReturnSite(expr); 2782 RecordJSReturnSite(expr);
2783 // Restore context register. 2783 // Restore context register.
2784 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2784 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2785 context()->DropAndPlug(1, r0); 2785 context()->DropAndPlug(1, r0);
2786 } 2786 }
2787 2787
2788 2788
2789 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { 2789 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
2790 // r4: copy of the first argument or undefined if it doesn't exist. 2790 // r5: copy of the first argument or undefined if it doesn't exist.
2791 if (arg_count > 0) { 2791 if (arg_count > 0) {
2792 __ ldr(r4, MemOperand(sp, arg_count * kPointerSize)); 2792 __ ldr(r5, MemOperand(sp, arg_count * kPointerSize));
2793 } else { 2793 } else {
2794 __ LoadRoot(r4, Heap::kUndefinedValueRootIndex); 2794 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex);
2795 } 2795 }
2796 2796
2797 // r4: the receiver of the enclosing function.
2798 __ ldr(r4, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
2799
2797 // r3: the receiver of the enclosing function. 2800 // r3: the receiver of the enclosing function.
2798 int receiver_offset = 2 + info_->scope()->num_parameters(); 2801 int receiver_offset = 2 + info_->scope()->num_parameters();
2799 __ ldr(r3, MemOperand(fp, receiver_offset * kPointerSize)); 2802 __ ldr(r3, MemOperand(fp, receiver_offset * kPointerSize));
2800 2803
2801 // r2: strict mode. 2804 // r2: strict mode.
2802 __ mov(r2, Operand(Smi::FromInt(strict_mode()))); 2805 __ mov(r2, Operand(Smi::FromInt(strict_mode())));
2803 2806
2804 // r1: the start position of the scope the calls resides in. 2807 // r1: the start position of the scope the calls resides in.
2805 __ mov(r1, Operand(Smi::FromInt(scope()->start_position()))); 2808 __ mov(r1, Operand(Smi::FromInt(scope()->start_position())));
2806 2809
2807 // Do the runtime call. 2810 // Do the runtime call.
2811 __ Push(r5);
2808 __ Push(r4, r3, r2, r1); 2812 __ Push(r4, r3, r2, r1);
2809 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); 2813 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6);
2810 } 2814 }
2811 2815
2812 2816
2813 void FullCodeGenerator::VisitCall(Call* expr) { 2817 void FullCodeGenerator::VisitCall(Call* expr) {
2814 #ifdef DEBUG 2818 #ifdef DEBUG
2815 // We want to verify that RecordJSReturnSite gets called on all paths 2819 // We want to verify that RecordJSReturnSite gets called on all paths
2816 // through this function. Avoid early returns. 2820 // through this function. Avoid early returns.
2817 expr->return_is_recorded_ = false; 2821 expr->return_is_recorded_ = false;
2818 #endif 2822 #endif
2819 2823
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after
5008 5012
5009 DCHECK(interrupt_address == 5013 DCHECK(interrupt_address ==
5010 isolate->builtins()->OsrAfterStackCheck()->entry()); 5014 isolate->builtins()->OsrAfterStackCheck()->entry());
5011 return OSR_AFTER_STACK_CHECK; 5015 return OSR_AFTER_STACK_CHECK;
5012 } 5016 }
5013 5017
5014 5018
5015 } } // namespace v8::internal 5019 } } // namespace v8::internal
5016 5020
5017 #endif // V8_TARGET_ARCH_ARM 5021 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698