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

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

Issue 681303002: MIPS: Use shared function info for eval cache key. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | « src/mips/full-codegen-mips.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after
2911 // by the vector above. 2911 // by the vector above.
2912 CallIC(ic); 2912 CallIC(ic);
2913 RecordJSReturnSite(expr); 2913 RecordJSReturnSite(expr);
2914 // Restore context register. 2914 // Restore context register.
2915 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2915 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2916 context()->DropAndPlug(1, v0); 2916 context()->DropAndPlug(1, v0);
2917 } 2917 }
2918 2918
2919 2919
2920 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { 2920 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
2921 // a6: copy of the first argument or undefined if it doesn't exist. 2921 // a7: copy of the first argument or undefined if it doesn't exist.
2922 if (arg_count > 0) { 2922 if (arg_count > 0) {
2923 __ ld(a6, MemOperand(sp, arg_count * kPointerSize)); 2923 __ ld(a7, MemOperand(sp, arg_count * kPointerSize));
2924 } else { 2924 } else {
2925 __ LoadRoot(a6, Heap::kUndefinedValueRootIndex); 2925 __ LoadRoot(a7, Heap::kUndefinedValueRootIndex);
2926 } 2926 }
2927 2927
2928 // a6: the receiver of the enclosing function.
2929 __ ld(a6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
2930
2928 // a5: the receiver of the enclosing function. 2931 // a5: the receiver of the enclosing function.
2929 int receiver_offset = 2 + info_->scope()->num_parameters(); 2932 int receiver_offset = 2 + info_->scope()->num_parameters();
2930 __ ld(a5, MemOperand(fp, receiver_offset * kPointerSize)); 2933 __ ld(a5, MemOperand(fp, receiver_offset * kPointerSize));
2931 2934
2932 // a4: the strict mode. 2935 // a4: the strict mode.
2933 __ li(a4, Operand(Smi::FromInt(strict_mode()))); 2936 __ li(a4, Operand(Smi::FromInt(strict_mode())));
2934 2937
2935 // a1: the start position of the scope the calls resides in. 2938 // a1: the start position of the scope the calls resides in.
2936 __ li(a1, Operand(Smi::FromInt(scope()->start_position()))); 2939 __ li(a1, Operand(Smi::FromInt(scope()->start_position())));
2937 2940
2938 // Do the runtime call. 2941 // Do the runtime call.
2942 __ Push(a7);
2939 __ Push(a6, a5, a4, a1); 2943 __ Push(a6, a5, a4, a1);
2940 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); 2944 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6);
2941 } 2945 }
2942 2946
2943 2947
2944 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) { 2948 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) {
2945 DCHECK(super_ref != NULL); 2949 DCHECK(super_ref != NULL);
2946 __ ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 2950 __ ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
2947 __ Push(a0); 2951 __ Push(a0);
2948 __ CallRuntime(Runtime::kGetPrototype, 1); 2952 __ CallRuntime(Runtime::kGetPrototype, 1);
2949 } 2953 }
2950 2954
(...skipping 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after
5220 Assembler::target_address_at(pc_immediate_load_address)) == 5224 Assembler::target_address_at(pc_immediate_load_address)) ==
5221 reinterpret_cast<uint64_t>( 5225 reinterpret_cast<uint64_t>(
5222 isolate->builtins()->OsrAfterStackCheck()->entry())); 5226 isolate->builtins()->OsrAfterStackCheck()->entry()));
5223 return OSR_AFTER_STACK_CHECK; 5227 return OSR_AFTER_STACK_CHECK;
5224 } 5228 }
5225 5229
5226 5230
5227 } } // namespace v8::internal 5231 } } // namespace v8::internal
5228 5232
5229 #endif // V8_TARGET_ARCH_MIPS64 5233 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698