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

Side by Side Diff: src/frames.h

Issue 12300018: Made Isolate a mandatory parameter for everything Handle-related. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed CreateCode calls. Be nicer to MIPS. Created 7 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/factory.cc ('k') | src/handles.h » ('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 // 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 }; 478 };
479 479
480 480
481 class FrameSummary BASE_EMBEDDED { 481 class FrameSummary BASE_EMBEDDED {
482 public: 482 public:
483 FrameSummary(Object* receiver, 483 FrameSummary(Object* receiver,
484 JSFunction* function, 484 JSFunction* function,
485 Code* code, 485 Code* code,
486 int offset, 486 int offset,
487 bool is_constructor) 487 bool is_constructor)
488 : receiver_(receiver), 488 : receiver_(receiver, function->GetIsolate()),
489 function_(function), 489 function_(function),
490 code_(code), 490 code_(code),
491 offset_(offset), 491 offset_(offset),
492 is_constructor_(is_constructor) { } 492 is_constructor_(is_constructor) { }
493 Handle<Object> receiver() { return receiver_; } 493 Handle<Object> receiver() { return receiver_; }
494 Handle<JSFunction> function() { return function_; } 494 Handle<JSFunction> function() { return function_; }
495 Handle<Code> code() { return code_; } 495 Handle<Code> code() { return code_; }
496 Address pc() { return code_->address() + offset_; } 496 Address pc() { return code_->address() + offset_; }
497 int offset() { return offset_; } 497 int offset() { return offset_; }
498 bool is_constructor() { return is_constructor_; } 498 bool is_constructor() { return is_constructor_; }
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 }; 969 };
970 970
971 971
972 // Reads all frames on the current stack and copies them into the current 972 // Reads all frames on the current stack and copies them into the current
973 // zone memory. 973 // zone memory.
974 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 974 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
975 975
976 } } // namespace v8::internal 976 } } // namespace v8::internal
977 977
978 #endif // V8_FRAMES_H_ 978 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698