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

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

Issue 6685088: Merge isolates to bleeding_edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 months 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') | src/x64/virtual-frame-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 cgen()->set_in_spilled_code(true); 60 cgen()->set_in_spilled_code(true);
61 } 61 }
62 62
63 ~SpilledScope() { 63 ~SpilledScope() {
64 cgen()->set_in_spilled_code(previous_state_); 64 cgen()->set_in_spilled_code(previous_state_);
65 } 65 }
66 66
67 private: 67 private:
68 bool previous_state_; 68 bool previous_state_;
69 69
70 CodeGenerator* cgen() { return CodeGeneratorScope::Current(); } 70 CodeGenerator* cgen() {
71 return CodeGeneratorScope::Current(Isolate::Current());
72 }
71 }; 73 };
72 74
73 // An illegal index into the virtual frame. 75 // An illegal index into the virtual frame.
74 static const int kIllegalIndex = -1; 76 static const int kIllegalIndex = -1;
75 77
76 // Construct an initial virtual frame on entry to a JS function. 78 // Construct an initial virtual frame on entry to a JS function.
77 inline VirtualFrame(); 79 inline VirtualFrame();
78 80
79 // Construct a virtual frame as a clone of an existing one. 81 // Construct a virtual frame as a clone of an existing one.
80 explicit inline VirtualFrame(VirtualFrame* original); 82 explicit inline VirtualFrame(VirtualFrame* original);
81 83
82 CodeGenerator* cgen() { return CodeGeneratorScope::Current(); } 84 CodeGenerator* cgen() {
85 return CodeGeneratorScope::Current(Isolate::Current());
86 }
87
83 MacroAssembler* masm() { return cgen()->masm(); } 88 MacroAssembler* masm() { return cgen()->masm(); }
84 89
85 // Create a duplicate of an existing valid frame element. 90 // Create a duplicate of an existing valid frame element.
86 FrameElement CopyElementAt(int index, 91 FrameElement CopyElementAt(int index,
87 TypeInfo info = TypeInfo::Uninitialized()); 92 TypeInfo info = TypeInfo::Uninitialized());
88 93
89 // The number of elements on the virtual frame. 94 // The number of elements on the virtual frame.
90 int element_count() { return elements_.length(); } 95 int element_count() { return elements_.length(); }
91 96
92 // The height of the virtual expression stack. 97 // The height of the virtual expression stack.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // to be in the proper registers or even in registers. The 313 // to be in the proper registers or even in registers. The
309 // arguments are consumed by the call. 314 // arguments are consumed by the call.
310 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1); 315 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1);
311 316
312 // Call JS function from top of the stack with arguments 317 // Call JS function from top of the stack with arguments
313 // taken from the stack. 318 // taken from the stack.
314 Result CallJSFunction(int arg_count); 319 Result CallJSFunction(int arg_count);
315 320
316 // Call runtime given the number of arguments expected on (and 321 // Call runtime given the number of arguments expected on (and
317 // removed from) the stack. 322 // removed from) the stack.
318 Result CallRuntime(Runtime::Function* f, int arg_count); 323 Result CallRuntime(const Runtime::Function* f, int arg_count);
319 Result CallRuntime(Runtime::FunctionId id, int arg_count); 324 Result CallRuntime(Runtime::FunctionId id, int arg_count);
320 325
321 #ifdef ENABLE_DEBUGGER_SUPPORT 326 #ifdef ENABLE_DEBUGGER_SUPPORT
322 void DebugBreak(); 327 void DebugBreak();
323 #endif 328 #endif
324 329
325 // Invoke builtin given the number of arguments it expects on (and 330 // Invoke builtin given the number of arguments it expects on (and
326 // removes from) the stack. 331 // removes from) the stack.
327 Result InvokeBuiltin(Builtins::JavaScript id, 332 Result InvokeBuiltin(Builtins::JavaScript id,
328 InvokeFlag flag, 333 InvokeFlag flag,
329 int arg_count); 334 int arg_count);
330 335
331 // Call load IC. Name and receiver are found on top of the frame. 336 // Call load IC. Name and receiver are found on top of the frame.
332 // Both are dropped. 337 // Both are dropped.
333 Result CallLoadIC(RelocInfo::Mode mode); 338 Result CallLoadIC(RelocInfo::Mode mode);
334 339
335 // Call keyed load IC. Key and receiver are found on top of the 340 // Call keyed load IC. Key and receiver are found on top of the
336 // frame. Both are dropped. 341 // frame. Both are dropped.
337 Result CallKeyedLoadIC(RelocInfo::Mode mode); 342 Result CallKeyedLoadIC(RelocInfo::Mode mode);
338 343
339 // Call store IC. If the load is contextual, value is found on top of the 344 // Call store IC. If the load is contextual, value is found on top of the
340 // frame. If not, value and receiver are on the frame. Both are dropped. 345 // frame. If not, value and receiver are on the frame. Both are dropped.
341 Result CallStoreIC(Handle<String> name, bool is_contextual, 346 Result CallStoreIC(Handle<String> name, bool is_contextual,
342 StrictModeFlag strict_mode); 347 StrictModeFlag strict_mode);
343 348
344 // Call keyed store IC. Value, key, and receiver are found on top 349 // Call keyed store IC. Value, key, and receiver are found on top
345 // of the frame. All three are dropped.
346 Result CallKeyedStoreIC(StrictModeFlag strict_mode); 350 Result CallKeyedStoreIC(StrictModeFlag strict_mode);
347 351
348 // Call call IC. Function name, arguments, and receiver are found on top 352 // Call call IC. Function name, arguments, and receiver are found on top
349 // of the frame and dropped by the call. 353 // of the frame and dropped by the call.
350 // The argument count does not include the receiver. 354 // The argument count does not include the receiver.
351 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); 355 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting);
352 356
353 // Call keyed call IC. Same calling convention as CallCallIC. 357 // Call keyed call IC. Same calling convention as CallCallIC.
354 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); 358 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting);
355 359
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 588
585 // Classes that need raw access to the elements_ array. 589 // Classes that need raw access to the elements_ array.
586 friend class FrameRegisterState; 590 friend class FrameRegisterState;
587 friend class JumpTarget; 591 friend class JumpTarget;
588 }; 592 };
589 593
590 594
591 } } // namespace v8::internal 595 } } // namespace v8::internal
592 596
593 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ 597 #endif // V8_X64_VIRTUAL_FRAME_X64_H_
OLDNEW
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | src/x64/virtual-frame-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698