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

Side by Side Diff: src/x64/virtual-frame-x64.cc

Issue 5188006: Push version 2.5.7 to trunk.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 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/x64/stub-cache-x64.cc ('k') | test/cctest/SConscript » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 14 matching lines...) Expand all
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #if defined(V8_TARGET_ARCH_X64) 30 #if defined(V8_TARGET_ARCH_X64)
31 31
32 #include "codegen-inl.h" 32 #include "codegen-inl.h"
33 #include "register-allocator-inl.h" 33 #include "register-allocator-inl.h"
34 #include "scopes.h" 34 #include "scopes.h"
35 #include "stub-cache.h"
35 #include "virtual-frame-inl.h" 36 #include "virtual-frame-inl.h"
36 37
37 namespace v8 { 38 namespace v8 {
38 namespace internal { 39 namespace internal {
39 40
40 #define __ ACCESS_MASM(masm()) 41 #define __ ACCESS_MASM(masm())
41 42
42 void VirtualFrame::Enter() { 43 void VirtualFrame::Enter() {
43 // Registers live on entry to a JS frame: 44 // Registers live on entry to a JS frame:
44 // rsp: stack pointer, points to return address from this function. 45 // rsp: stack pointer, points to return address from this function.
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 } 1188 }
1188 1189
1189 1190
1190 Result VirtualFrame::CallCallIC(RelocInfo::Mode mode, 1191 Result VirtualFrame::CallCallIC(RelocInfo::Mode mode,
1191 int arg_count, 1192 int arg_count,
1192 int loop_nesting) { 1193 int loop_nesting) {
1193 // Function name, arguments, and receiver are found on top of the frame 1194 // Function name, arguments, and receiver are found on top of the frame
1194 // and dropped by the call. The IC expects the name in rcx and the rest 1195 // and dropped by the call. The IC expects the name in rcx and the rest
1195 // on the stack, and drops them all. 1196 // on the stack, and drops them all.
1196 InLoopFlag in_loop = loop_nesting > 0 ? IN_LOOP : NOT_IN_LOOP; 1197 InLoopFlag in_loop = loop_nesting > 0 ? IN_LOOP : NOT_IN_LOOP;
1197 Handle<Code> ic = cgen()->ComputeCallInitialize(arg_count, in_loop); 1198 Handle<Code> ic = StubCache::ComputeCallInitialize(arg_count, in_loop);
1198 Result name = Pop(); 1199 Result name = Pop();
1199 // Spill args, receiver, and function. The call will drop args and 1200 // Spill args, receiver, and function. The call will drop args and
1200 // receiver. 1201 // receiver.
1201 PrepareForCall(arg_count + 1, arg_count + 1); 1202 PrepareForCall(arg_count + 1, arg_count + 1);
1202 name.ToRegister(rcx); 1203 name.ToRegister(rcx);
1203 name.Unuse(); 1204 name.Unuse();
1204 return RawCallCodeObject(ic, mode); 1205 return RawCallCodeObject(ic, mode);
1205 } 1206 }
1206 1207
1207 1208
1208 Result VirtualFrame::CallKeyedCallIC(RelocInfo::Mode mode, 1209 Result VirtualFrame::CallKeyedCallIC(RelocInfo::Mode mode,
1209 int arg_count, 1210 int arg_count,
1210 int loop_nesting) { 1211 int loop_nesting) {
1211 // Function name, arguments, and receiver are found on top of the frame 1212 // Function name, arguments, and receiver are found on top of the frame
1212 // and dropped by the call. The IC expects the name in rcx and the rest 1213 // and dropped by the call. The IC expects the name in rcx and the rest
1213 // on the stack, and drops them all. 1214 // on the stack, and drops them all.
1214 InLoopFlag in_loop = loop_nesting > 0 ? IN_LOOP : NOT_IN_LOOP; 1215 InLoopFlag in_loop = loop_nesting > 0 ? IN_LOOP : NOT_IN_LOOP;
1215 Handle<Code> ic = 1216 Handle<Code> ic =
1216 cgen()->ComputeKeyedCallInitialize(arg_count, in_loop); 1217 StubCache::ComputeKeyedCallInitialize(arg_count, in_loop);
1217 Result name = Pop(); 1218 Result name = Pop();
1218 // Spill args, receiver, and function. The call will drop args and 1219 // Spill args, receiver, and function. The call will drop args and
1219 // receiver. 1220 // receiver.
1220 PrepareForCall(arg_count + 1, arg_count + 1); 1221 PrepareForCall(arg_count + 1, arg_count + 1);
1221 name.ToRegister(rcx); 1222 name.ToRegister(rcx);
1222 name.Unuse(); 1223 name.Unuse();
1223 return RawCallCodeObject(ic, mode); 1224 return RawCallCodeObject(ic, mode);
1224 } 1225 }
1225 1226
1226 1227
(...skipping 28 matching lines...) Expand all
1255 Adjust(kHandlerSize - 1); 1256 Adjust(kHandlerSize - 1);
1256 __ PushTryHandler(IN_JAVASCRIPT, type); 1257 __ PushTryHandler(IN_JAVASCRIPT, type);
1257 } 1258 }
1258 1259
1259 1260
1260 #undef __ 1261 #undef __
1261 1262
1262 } } // namespace v8::internal 1263 } } // namespace v8::internal
1263 1264
1264 #endif // V8_TARGET_ARCH_X64 1265 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | test/cctest/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698