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

Side by Side Diff: src/deoptimizer.h

Issue 188063002: Fix deoptimization for out-of-line constant pool. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use correct constant pool for stubs. Created 6 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/arm/deoptimizer-arm.cc ('k') | src/deoptimizer.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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 } 501 }
502 502
503 void SetFrameSlot(unsigned offset, intptr_t value) { 503 void SetFrameSlot(unsigned offset, intptr_t value) {
504 *GetFrameSlotPointer(offset) = value; 504 *GetFrameSlotPointer(offset) = value;
505 } 505 }
506 506
507 void SetCallerPc(unsigned offset, intptr_t value); 507 void SetCallerPc(unsigned offset, intptr_t value);
508 508
509 void SetCallerFp(unsigned offset, intptr_t value); 509 void SetCallerFp(unsigned offset, intptr_t value);
510 510
511 void SetCallerConstantPool(unsigned offset, intptr_t value);
512
511 intptr_t GetRegister(unsigned n) const { 513 intptr_t GetRegister(unsigned n) const {
512 #if DEBUG 514 #if DEBUG
513 // This convoluted ASSERT is needed to work around a gcc problem that 515 // This convoluted ASSERT is needed to work around a gcc problem that
514 // improperly detects an array bounds overflow in optimized debug builds 516 // improperly detects an array bounds overflow in optimized debug builds
515 // when using a plain ASSERT. 517 // when using a plain ASSERT.
516 if (n >= ARRAY_SIZE(registers_)) { 518 if (n >= ARRAY_SIZE(registers_)) {
517 ASSERT(false); 519 ASSERT(false);
518 return 0; 520 return 0;
519 } 521 }
520 #endif 522 #endif
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 Object** expression_stack_; 991 Object** expression_stack_;
990 int source_position_; 992 int source_position_;
991 993
992 friend class Deoptimizer; 994 friend class Deoptimizer;
993 }; 995 };
994 #endif 996 #endif
995 997
996 } } // namespace v8::internal 998 } } // namespace v8::internal
997 999
998 #endif // V8_DEOPTIMIZER_H_ 1000 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698