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

Side by Side Diff: src/frames.cc

Issue 10532066: Reimplement dynamic frame alignment for frames that are compiled via OSR or have more than 2 double… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: don't align frames of recursive functions Created 8 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/frames.h ('k') | src/hydrogen.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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 } 462 }
463 463
464 464
465 465
466 StackFrame::Type StackFrame::GetCallerState(State* state) const { 466 StackFrame::Type StackFrame::GetCallerState(State* state) const {
467 ComputeCallerState(state); 467 ComputeCallerState(state);
468 return ComputeType(isolate(), state); 468 return ComputeType(isolate(), state);
469 } 469 }
470 470
471 471
472 Address StackFrame::UnpaddedFP() const {
473 #if defined(V8_TARGET_ARCH_IA32) || defined(V8_HOST_ARCH_IA32)
474 if (!is_optimized()) return fp();
475 int32_t alignment_state = Memory::int32_at(
476 fp() + JavaScriptFrameConstants::kDynamicAlignmentStateOffset);
477
478 return (alignment_state == kAlignmentPaddingPushed) ?
479 (fp() + kPointerSize) : fp();
480 #else
481 return fp();
482 #endif
483 }
484
485
472 Code* EntryFrame::unchecked_code() const { 486 Code* EntryFrame::unchecked_code() const {
473 return HEAP->raw_unchecked_js_entry_code(); 487 return HEAP->raw_unchecked_js_entry_code();
474 } 488 }
475 489
476 490
477 void EntryFrame::ComputeCallerState(State* state) const { 491 void EntryFrame::ComputeCallerState(State* state) const {
478 GetCallerState(state); 492 GetCallerState(state);
479 } 493 }
480 494
481 495
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 ZoneList<StackFrame*> list(10, zone); 1428 ZoneList<StackFrame*> list(10, zone);
1415 for (StackFrameIterator it; !it.done(); it.Advance()) { 1429 for (StackFrameIterator it; !it.done(); it.Advance()) {
1416 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1430 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1417 list.Add(frame, zone); 1431 list.Add(frame, zone);
1418 } 1432 }
1419 return list.ToVector(); 1433 return list.ToVector();
1420 } 1434 }
1421 1435
1422 1436
1423 } } // namespace v8::internal 1437 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/frames.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698