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

Side by Side Diff: src/deoptimizer.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/compiler.h ('k') | src/frames.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 intptr_t* GetFrameSlotPointer(unsigned offset) { 469 intptr_t* GetFrameSlotPointer(unsigned offset) {
470 ASSERT(offset < frame_size_); 470 ASSERT(offset < frame_size_);
471 return reinterpret_cast<intptr_t*>( 471 return reinterpret_cast<intptr_t*>(
472 reinterpret_cast<Address>(this) + frame_content_offset() + offset); 472 reinterpret_cast<Address>(this) + frame_content_offset() + offset);
473 } 473 }
474 }; 474 };
475 475
476 476
477 class TranslationBuffer BASE_EMBEDDED { 477 class TranslationBuffer BASE_EMBEDDED {
478 public: 478 public:
479 TranslationBuffer() : contents_(256) { } 479 TranslationBuffer() : contents_(ZONE, 256) { }
480 480
481 int CurrentIndex() const { return contents_.length(); } 481 int CurrentIndex() const { return contents_.length(); }
482 void Add(int32_t value); 482 void Add(int32_t value);
483 483
484 Handle<ByteArray> CreateByteArray(); 484 Handle<ByteArray> CreateByteArray();
485 485
486 private: 486 private:
487 ZoneList<uint8_t> contents_; 487 ZoneList<uint8_t> contents_;
488 }; 488 };
489 489
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 Object** parameters_; 715 Object** parameters_;
716 Object** expression_stack_; 716 Object** expression_stack_;
717 717
718 friend class Deoptimizer; 718 friend class Deoptimizer;
719 }; 719 };
720 #endif 720 #endif
721 721
722 } } // namespace v8::internal 722 } } // namespace v8::internal
723 723
724 #endif // V8_DEOPTIMIZER_H_ 724 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698