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

Side by Side Diff: src/frames.cc

Issue 11271020: Get rid of obsolete unchecked accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/elements.cc ('k') | src/heap.cc » ('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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 477
478 return (alignment_state == kAlignmentPaddingPushed) ? 478 return (alignment_state == kAlignmentPaddingPushed) ?
479 (fp() + kPointerSize) : fp(); 479 (fp() + kPointerSize) : fp();
480 #else 480 #else
481 return fp(); 481 return fp();
482 #endif 482 #endif
483 } 483 }
484 484
485 485
486 Code* EntryFrame::unchecked_code() const { 486 Code* EntryFrame::unchecked_code() const {
487 return HEAP->raw_unchecked_js_entry_code(); 487 return HEAP->js_entry_code();
488 } 488 }
489 489
490 490
491 void EntryFrame::ComputeCallerState(State* state) const { 491 void EntryFrame::ComputeCallerState(State* state) const {
492 GetCallerState(state); 492 GetCallerState(state);
493 } 493 }
494 494
495 495
496 void EntryFrame::SetCallerFp(Address caller_fp) { 496 void EntryFrame::SetCallerFp(Address caller_fp) {
497 const int offset = EntryFrameConstants::kCallerFPOffset; 497 const int offset = EntryFrameConstants::kCallerFPOffset;
498 Memory::Address_at(this->fp() + offset) = caller_fp; 498 Memory::Address_at(this->fp() + offset) = caller_fp;
499 } 499 }
500 500
501 501
502 StackFrame::Type EntryFrame::GetCallerState(State* state) const { 502 StackFrame::Type EntryFrame::GetCallerState(State* state) const {
503 const int offset = EntryFrameConstants::kCallerFPOffset; 503 const int offset = EntryFrameConstants::kCallerFPOffset;
504 Address fp = Memory::Address_at(this->fp() + offset); 504 Address fp = Memory::Address_at(this->fp() + offset);
505 return ExitFrame::GetStateForFramePointer(fp, state); 505 return ExitFrame::GetStateForFramePointer(fp, state);
506 } 506 }
507 507
508 508
509 Code* EntryConstructFrame::unchecked_code() const { 509 Code* EntryConstructFrame::unchecked_code() const {
510 return HEAP->raw_unchecked_js_construct_entry_code(); 510 return HEAP->js_construct_entry_code();
511 } 511 }
512 512
513 513
514 Object*& ExitFrame::code_slot() const { 514 Object*& ExitFrame::code_slot() const {
515 const int offset = ExitFrameConstants::kCodeOffset; 515 const int offset = ExitFrameConstants::kCodeOffset;
516 return Memory::Object_at(fp() + offset); 516 return Memory::Object_at(fp() + offset);
517 } 517 }
518 518
519 519
520 Code* ExitFrame::unchecked_code() const { 520 Code* ExitFrame::unchecked_code() const {
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 ZoneList<StackFrame*> list(10, zone); 1436 ZoneList<StackFrame*> list(10, zone);
1437 for (StackFrameIterator it; !it.done(); it.Advance()) { 1437 for (StackFrameIterator it; !it.done(); it.Advance()) {
1438 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1438 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1439 list.Add(frame, zone); 1439 list.Add(frame, zone);
1440 } 1440 }
1441 return list.ToVector(); 1441 return list.ToVector();
1442 } 1442 }
1443 1443
1444 1444
1445 } } // namespace v8::internal 1445 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698