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

Side by Side Diff: src/frames.h

Issue 1412953007: [Interpreter] Fill out function prologue support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 2 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/compiler/bytecode-graph-builder.cc ('k') | src/ia32/builtins-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FRAMES_H_ 5 #ifndef V8_FRAMES_H_
6 #define V8_FRAMES_H_ 6 #define V8_FRAMES_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 bool is_arguments_adaptor() const { return type() == ARGUMENTS_ADAPTOR; } 241 bool is_arguments_adaptor() const { return type() == ARGUMENTS_ADAPTOR; }
242 bool is_internal() const { return type() == INTERNAL; } 242 bool is_internal() const { return type() == INTERNAL; }
243 bool is_stub_failure_trampoline() const { 243 bool is_stub_failure_trampoline() const {
244 return type() == STUB_FAILURE_TRAMPOLINE; 244 return type() == STUB_FAILURE_TRAMPOLINE;
245 } 245 }
246 bool is_construct() const { return type() == CONSTRUCT; } 246 bool is_construct() const { return type() == CONSTRUCT; }
247 virtual bool is_standard() const { return false; } 247 virtual bool is_standard() const { return false; }
248 248
249 bool is_java_script() const { 249 bool is_java_script() const {
250 Type type = this->type(); 250 Type type = this->type();
251 return (type == JAVA_SCRIPT) || (type == OPTIMIZED); 251 return (type == JAVA_SCRIPT) || (type == OPTIMIZED) ||
252 (type == INTERPRETED);
252 } 253 }
253 254
254 // Accessors. 255 // Accessors.
255 Address sp() const { return state_.sp; } 256 Address sp() const { return state_.sp; }
256 Address fp() const { return state_.fp; } 257 Address fp() const { return state_.fp; }
257 Address caller_sp() const { return GetCallerStackPointer(); } 258 Address caller_sp() const { return GetCallerStackPointer(); }
258 259
259 // If this frame is optimized and was dynamically aligned return its old 260 // If this frame is optimized and was dynamically aligned return its old
260 // unaligned frame pointer. When the frame is deoptimized its FP will shift 261 // unaligned frame pointer. When the frame is deoptimized its FP will shift
261 // up one word and become unaligned. 262 // up one word and become unaligned.
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 960
960 961
961 // Reads all frames on the current stack and copies them into the current 962 // Reads all frames on the current stack and copies them into the current
962 // zone memory. 963 // zone memory.
963 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 964 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
964 965
965 } // namespace internal 966 } // namespace internal
966 } // namespace v8 967 } // namespace v8
967 968
968 #endif // V8_FRAMES_H_ 969 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698