OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |