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

Side by Side Diff: src/frames.cc

Issue 255543003: CodeStubs contain their corresponding Isolate* now. (part 2) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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
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 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 1397
1398 1398
1399 Address StubFailureTrampolineFrame::GetCallerStackPointer() const { 1399 Address StubFailureTrampolineFrame::GetCallerStackPointer() const {
1400 return fp() + StandardFrameConstants::kCallerSPOffset; 1400 return fp() + StandardFrameConstants::kCallerSPOffset;
1401 } 1401 }
1402 1402
1403 1403
1404 Code* StubFailureTrampolineFrame::unchecked_code() const { 1404 Code* StubFailureTrampolineFrame::unchecked_code() const {
1405 Code* trampoline; 1405 Code* trampoline;
1406 StubFailureTrampolineStub(isolate(), NOT_JS_FUNCTION_STUB_MODE). 1406 StubFailureTrampolineStub(isolate(), NOT_JS_FUNCTION_STUB_MODE).
1407 FindCodeInCache(&trampoline, isolate()); 1407 FindCodeInCache(&trampoline);
1408 if (trampoline->contains(pc())) { 1408 if (trampoline->contains(pc())) {
1409 return trampoline; 1409 return trampoline;
1410 } 1410 }
1411 1411
1412 StubFailureTrampolineStub(isolate(), JS_FUNCTION_STUB_MODE). 1412 StubFailureTrampolineStub(isolate(), JS_FUNCTION_STUB_MODE).
1413 FindCodeInCache(&trampoline, isolate()); 1413 FindCodeInCache(&trampoline);
1414 if (trampoline->contains(pc())) { 1414 if (trampoline->contains(pc())) {
1415 return trampoline; 1415 return trampoline;
1416 } 1416 }
1417 1417
1418 UNREACHABLE(); 1418 UNREACHABLE();
1419 return NULL; 1419 return NULL;
1420 } 1420 }
1421 1421
1422 1422
1423 // ------------------------------------------------------------------------- 1423 // -------------------------------------------------------------------------
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 ZoneList<StackFrame*> list(10, zone); 1641 ZoneList<StackFrame*> list(10, zone);
1642 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1642 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1643 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1643 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1644 list.Add(frame, zone); 1644 list.Add(frame, zone);
1645 } 1645 }
1646 return list.ToVector(); 1646 return list.ToVector();
1647 } 1647 }
1648 1648
1649 1649
1650 } } // namespace v8::internal 1650 } } // namespace v8::internal
OLDNEW
« src/arm/macro-assembler-arm.cc ('K') | « src/deoptimizer.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698