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

Side by Side Diff: src/frames.cc

Issue 2840018: [Isolates] Moved more compilation-related globals (builtins, runtime, &c.)... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: rebase Created 10 years, 6 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/factory.cc ('k') | src/heap.cc » ('j') | src/runtime.h » ('J')
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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 } 496 }
497 497
498 498
499 Code* JavaScriptFrame::code() const { 499 Code* JavaScriptFrame::code() const {
500 JSFunction* function = JSFunction::cast(this->function()); 500 JSFunction* function = JSFunction::cast(this->function());
501 return function->shared()->code(); 501 return function->shared()->code();
502 } 502 }
503 503
504 504
505 Code* ArgumentsAdaptorFrame::code() const { 505 Code* ArgumentsAdaptorFrame::code() const {
506 return Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline); 506 return Isolate::Current()->builtins()->builtin(
507 Builtins::ArgumentsAdaptorTrampoline);
507 } 508 }
508 509
509 510
510 Code* InternalFrame::code() const { 511 Code* InternalFrame::code() const {
511 const int offset = InternalFrameConstants::kCodeOffset; 512 const int offset = InternalFrameConstants::kCodeOffset;
512 Object* code = Memory::Object_at(fp() + offset); 513 Object* code = Memory::Object_at(fp() + offset);
513 ASSERT(code != NULL); 514 ASSERT(code != NULL);
514 return Code::cast(code); 515 return Code::cast(code);
515 } 516 }
516 517
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 ZoneList<StackFrame*> list(10); 818 ZoneList<StackFrame*> list(10);
818 for (StackFrameIterator it; !it.done(); it.Advance()) { 819 for (StackFrameIterator it; !it.done(); it.Advance()) {
819 StackFrame* frame = AllocateFrameCopy(it.frame()); 820 StackFrame* frame = AllocateFrameCopy(it.frame());
820 list.Add(frame); 821 list.Add(frame);
821 } 822 }
822 return list.ToVector(); 823 return list.ToVector();
823 } 824 }
824 825
825 826
826 } } // namespace v8::internal 827 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | src/runtime.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698