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

Side by Side Diff: src/ia32/virtual-frame-ia32.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/ia32/stub-cache-ia32.cc ('k') | src/ia32/virtual-frame-ia32.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 }
83 87
84 MacroAssembler* masm() { return cgen()->masm(); } 88 MacroAssembler* masm() { return cgen()->masm(); }
85 89
86 // Create a duplicate of an existing valid frame element. 90 // Create a duplicate of an existing valid frame element.
87 FrameElement CopyElementAt(int index, 91 FrameElement CopyElementAt(int index,
88 TypeInfo info = TypeInfo::Uninitialized()); 92 TypeInfo info = TypeInfo::Uninitialized());
89 93
90 // The number of elements on the virtual frame. 94 // The number of elements on the virtual frame.
91 int element_count() { return elements_.length(); } 95 int element_count() { return elements_.length(); }
92 96
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // to be in the proper registers or even in registers. The 341 // to be in the proper registers or even in registers. The
338 // arguments are consumed by the call. 342 // arguments are consumed by the call.
339 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1); 343 Result CallStub(CodeStub* stub, Result* arg0, Result* arg1);
340 344
341 // Call JS function from top of the stack with arguments 345 // Call JS function from top of the stack with arguments
342 // taken from the stack. 346 // taken from the stack.
343 Result CallJSFunction(int arg_count); 347 Result CallJSFunction(int arg_count);
344 348
345 // Call runtime given the number of arguments expected on (and 349 // Call runtime given the number of arguments expected on (and
346 // removed from) the stack. 350 // removed from) the stack.
347 Result CallRuntime(Runtime::Function* f, int arg_count); 351 Result CallRuntime(const Runtime::Function* f, int arg_count);
348 Result CallRuntime(Runtime::FunctionId id, int arg_count); 352 Result CallRuntime(Runtime::FunctionId id, int arg_count);
349 353
350 #ifdef ENABLE_DEBUGGER_SUPPORT 354 #ifdef ENABLE_DEBUGGER_SUPPORT
351 void DebugBreak(); 355 void DebugBreak();
352 #endif 356 #endif
353 357
354 // Invoke builtin given the number of arguments it expects on (and 358 // Invoke builtin given the number of arguments it expects on (and
355 // removes from) the stack. 359 // removes from) the stack.
356 Result InvokeBuiltin(Builtins::JavaScript id, InvokeFlag flag, int arg_count); 360 Result InvokeBuiltin(Builtins::JavaScript id, InvokeFlag flag, int arg_count);
357 361
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 inline bool Equals(VirtualFrame* other); 641 inline bool Equals(VirtualFrame* other);
638 642
639 // Classes that need raw access to the elements_ array. 643 // Classes that need raw access to the elements_ array.
640 friend class FrameRegisterState; 644 friend class FrameRegisterState;
641 friend class JumpTarget; 645 friend class JumpTarget;
642 }; 646 };
643 647
644 } } // namespace v8::internal 648 } } // namespace v8::internal
645 649
646 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ 650 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ia32/virtual-frame-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698