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

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

Issue 678843004: 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/runtime/runtime-debug.cc ('k') | test/mjsunit/regress/regress-eval-cache.js » ('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_X64 7 #if V8_TARGET_ARCH_X64
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 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after
2848 2848
2849 2849
2850 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { 2850 void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
2851 // Push copy of the first argument or undefined if it doesn't exist. 2851 // Push copy of the first argument or undefined if it doesn't exist.
2852 if (arg_count > 0) { 2852 if (arg_count > 0) {
2853 __ Push(Operand(rsp, arg_count * kPointerSize)); 2853 __ Push(Operand(rsp, arg_count * kPointerSize));
2854 } else { 2854 } else {
2855 __ PushRoot(Heap::kUndefinedValueRootIndex); 2855 __ PushRoot(Heap::kUndefinedValueRootIndex);
2856 } 2856 }
2857 2857
2858 // Push the enclosing function.
2859 __ Push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
2860
2858 // Push the receiver of the enclosing function and do runtime call. 2861 // Push the receiver of the enclosing function and do runtime call.
2859 StackArgumentsAccessor args(rbp, info_->scope()->num_parameters()); 2862 StackArgumentsAccessor args(rbp, info_->scope()->num_parameters());
2860 __ Push(args.GetReceiverOperand()); 2863 __ Push(args.GetReceiverOperand());
2861 2864
2862 // Push the language mode. 2865 // Push the language mode.
2863 __ Push(Smi::FromInt(strict_mode())); 2866 __ Push(Smi::FromInt(strict_mode()));
2864 2867
2865 // Push the start position of the scope the calls resides in. 2868 // Push the start position of the scope the calls resides in.
2866 __ Push(Smi::FromInt(scope()->start_position())); 2869 __ Push(Smi::FromInt(scope()->start_position()));
2867 2870
2868 // Do the runtime call. 2871 // Do the runtime call.
2869 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); 2872 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6);
2870 } 2873 }
2871 2874
2872 2875
2873 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) { 2876 void FullCodeGenerator::EmitLoadSuperConstructor(SuperReference* super_ref) {
2874 DCHECK(super_ref != NULL); 2877 DCHECK(super_ref != NULL);
2875 __ Push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 2878 __ Push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
2876 __ CallRuntime(Runtime::kGetPrototype, 1); 2879 __ CallRuntime(Runtime::kGetPrototype, 1);
2877 } 2880 }
2878 2881
2879 2882
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after
5174 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5177 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5175 Assembler::target_address_at(call_target_address, 5178 Assembler::target_address_at(call_target_address,
5176 unoptimized_code)); 5179 unoptimized_code));
5177 return OSR_AFTER_STACK_CHECK; 5180 return OSR_AFTER_STACK_CHECK;
5178 } 5181 }
5179 5182
5180 5183
5181 } } // namespace v8::internal 5184 } } // namespace v8::internal
5182 5185
5183 #endif // V8_TARGET_ARCH_X64 5186 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | test/mjsunit/regress/regress-eval-cache.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698