| Index: src/frames.cc
|
| diff --git a/src/frames.cc b/src/frames.cc
|
| index bdd5100ed864da8d13d22fa3b26bb6fe3cefb345..9f815c39b13f9fa717feb8f2ea727d05ec5d6aa9 100644
|
| --- a/src/frames.cc
|
| +++ b/src/frames.cc
|
| @@ -372,8 +372,8 @@ StackFrame::Type StackFrame::GetCallerState(State* state) const {
|
| }
|
|
|
|
|
| -Code* EntryFrame::code() const {
|
| - return Heap::js_entry_code();
|
| +Code* EntryFrame::unchecked_code() const {
|
| + return Heap::raw_unchecked_js_entry_code();
|
| }
|
|
|
|
|
| @@ -395,8 +395,8 @@ StackFrame::Type EntryFrame::GetCallerState(State* state) const {
|
| }
|
|
|
|
|
| -Code* EntryConstructFrame::code() const {
|
| - return Heap::js_construct_entry_code();
|
| +Code* EntryConstructFrame::unchecked_code() const {
|
| + return Heap::raw_unchecked_js_construct_entry_code();
|
| }
|
|
|
|
|
| @@ -406,8 +406,8 @@ Object*& ExitFrame::code_slot() const {
|
| }
|
|
|
|
|
| -Code* ExitFrame::code() const {
|
| - return Code::cast(code_slot());
|
| +Code* ExitFrame::unchecked_code() const {
|
| + return reinterpret_cast<Code*>(code_slot());
|
| }
|
|
|
|
|
| @@ -493,22 +493,22 @@ bool JavaScriptFrame::IsConstructor() const {
|
| }
|
|
|
|
|
| -Code* JavaScriptFrame::code() const {
|
| +Code* JavaScriptFrame::unchecked_code() const {
|
| JSFunction* function = JSFunction::cast(this->function());
|
| - return function->shared()->code();
|
| + return function->unchecked_code();
|
| }
|
|
|
|
|
| -Code* ArgumentsAdaptorFrame::code() const {
|
| +Code* ArgumentsAdaptorFrame::unchecked_code() const {
|
| return Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline);
|
| }
|
|
|
|
|
| -Code* InternalFrame::code() const {
|
| +Code* InternalFrame::unchecked_code() const {
|
| const int offset = InternalFrameConstants::kCodeOffset;
|
| Object* code = Memory::Object_at(fp() + offset);
|
| ASSERT(code != NULL);
|
| - return Code::cast(code);
|
| + return reinterpret_cast<Code*>(code);
|
| }
|
|
|
|
|
|
|