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

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

Issue 48008: Simplify the construction of virtual frame elements in preparation for... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/virtual-frame-arm.h ('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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 public: 50 public:
51 explicit SpilledScope(CodeGenerator* cgen); 51 explicit SpilledScope(CodeGenerator* cgen);
52 52
53 ~SpilledScope(); 53 ~SpilledScope();
54 54
55 private: 55 private:
56 CodeGenerator* cgen_; 56 CodeGenerator* cgen_;
57 bool previous_state_; 57 bool previous_state_;
58 }; 58 };
59 59
60 // An illegal index into the virtual frame.
61 static const int kIllegalIndex = -1;
62
60 // Construct an initial virtual frame on entry to a JS function. 63 // Construct an initial virtual frame on entry to a JS function.
61 explicit VirtualFrame(CodeGenerator* cgen); 64 explicit VirtualFrame(CodeGenerator* cgen);
62 65
63 // Construct a virtual frame as a clone of an existing one. 66 // Construct a virtual frame as a clone of an existing one.
64 explicit VirtualFrame(VirtualFrame* original); 67 explicit VirtualFrame(VirtualFrame* original);
65 68
66 // Create a duplicate of an existing valid frame element. 69 // Create a duplicate of an existing valid frame element.
67 FrameElement CopyElementAt(int index); 70 FrameElement CopyElementAt(int index);
68 71
69 // The height of the virtual expression stack. 72 // The height of the virtual expression stack.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Pushing a result invalidates it (its contents become owned by the 301 // Pushing a result invalidates it (its contents become owned by the
299 // frame). 302 // frame).
300 void Push(Result* result); 303 void Push(Result* result);
301 304
302 // Nip removes zero or more elements from immediately below the top 305 // Nip removes zero or more elements from immediately below the top
303 // of the frame, leaving the previous top-of-frame value on top of 306 // of the frame, leaving the previous top-of-frame value on top of
304 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). 307 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x).
305 void Nip(int num_dropped); 308 void Nip(int num_dropped);
306 309
307 private: 310 private:
308 // An illegal index into the virtual frame.
309 static const int kIllegalIndex = -1;
310
311 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; 311 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset;
312 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; 312 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset;
313 static const int kContextOffset = StandardFrameConstants::kContextOffset; 313 static const int kContextOffset = StandardFrameConstants::kContextOffset;
314 314
315 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; 315 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize;
316 316
317 CodeGenerator* cgen_; 317 CodeGenerator* cgen_;
318 MacroAssembler* masm_; 318 MacroAssembler* masm_;
319 319
320 List<FrameElement> elements_; 320 List<FrameElement> elements_;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); 450 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode);
451 451
452 bool Equals(VirtualFrame* other); 452 bool Equals(VirtualFrame* other);
453 453
454 friend class JumpTarget; 454 friend class JumpTarget;
455 }; 455 };
456 456
457 } } // namespace v8::internal 457 } } // namespace v8::internal
458 458
459 #endif // V8_VIRTUAL_FRAME_IA32_H_ 459 #endif // V8_VIRTUAL_FRAME_IA32_H_
OLDNEW
« no previous file with comments | « src/virtual-frame-arm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698