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

Side by Side Diff: src/ia32/frames-ia32.h

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | src/ia32/full-codegen-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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 1 << 0 | // eax 44 1 << 0 | // eax
45 1 << 1 | // ecx 45 1 << 1 | // ecx
46 1 << 2 | // edx 46 1 << 2 | // edx
47 1 << 3 | // ebx - used as a caller-saved register in JavaScript code 47 1 << 3 | // ebx - used as a caller-saved register in JavaScript code
48 1 << 7; // edi - callee function 48 1 << 7; // edi - callee function
49 49
50 static const int kNumJSCallerSaved = 5; 50 static const int kNumJSCallerSaved = 5;
51 51
52 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; 52 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved];
53 53
54
55 // Number of registers for which space is reserved in safepoints.
56 static const int kNumSafepointRegisters = 8;
57
54 // ---------------------------------------------------- 58 // ----------------------------------------------------
55 59
56 60
57 class StackHandlerConstants : public AllStatic { 61 class StackHandlerConstants : public AllStatic {
58 public: 62 public:
59 static const int kNextOffset = 0 * kPointerSize; 63 static const int kNextOffset = 0 * kPointerSize;
60 static const int kFPOffset = 1 * kPointerSize; 64 static const int kFPOffset = 1 * kPointerSize;
61 static const int kStateOffset = 2 * kPointerSize; 65 static const int kStateOffset = 2 * kPointerSize;
62 static const int kPCOffset = 3 * kPointerSize; 66 static const int kPCOffset = 3 * kPointerSize;
63 67
(...skipping 21 matching lines...) Expand all
85 static const int kCallerPCOffset = +1 * kPointerSize; 89 static const int kCallerPCOffset = +1 * kPointerSize;
86 90
87 // FP-relative displacement of the caller's SP. It points just 91 // FP-relative displacement of the caller's SP. It points just
88 // below the saved PC. 92 // below the saved PC.
89 static const int kCallerSPDisplacement = +2 * kPointerSize; 93 static const int kCallerSPDisplacement = +2 * kPointerSize;
90 }; 94 };
91 95
92 96
93 class StandardFrameConstants : public AllStatic { 97 class StandardFrameConstants : public AllStatic {
94 public: 98 public:
99 static const int kFixedFrameSize = 4;
95 static const int kExpressionsOffset = -3 * kPointerSize; 100 static const int kExpressionsOffset = -3 * kPointerSize;
96 static const int kMarkerOffset = -2 * kPointerSize; 101 static const int kMarkerOffset = -2 * kPointerSize;
97 static const int kContextOffset = -1 * kPointerSize; 102 static const int kContextOffset = -1 * kPointerSize;
98 static const int kCallerFPOffset = 0 * kPointerSize; 103 static const int kCallerFPOffset = 0 * kPointerSize;
99 static const int kCallerPCOffset = +1 * kPointerSize; 104 static const int kCallerPCOffset = +1 * kPointerSize;
100 static const int kCallerSPOffset = +2 * kPointerSize; 105 static const int kCallerSPOffset = +2 * kPointerSize;
101 }; 106 };
102 107
103 108
104 class JavaScriptFrameConstants : public AllStatic { 109 class JavaScriptFrameConstants : public AllStatic {
(...skipping 23 matching lines...) Expand all
128 133
129 inline Object* JavaScriptFrame::function_slot_object() const { 134 inline Object* JavaScriptFrame::function_slot_object() const {
130 const int offset = JavaScriptFrameConstants::kFunctionOffset; 135 const int offset = JavaScriptFrameConstants::kFunctionOffset;
131 return Memory::Object_at(fp() + offset); 136 return Memory::Object_at(fp() + offset);
132 } 137 }
133 138
134 139
135 } } // namespace v8::internal 140 } } // namespace v8::internal
136 141
137 #endif // V8_IA32_FRAMES_IA32_H_ 142 #endif // V8_IA32_FRAMES_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698