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

Side by Side Diff: src/deoptimizer.h

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 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/defaults.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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 void DoComputeAccessorStubFrame(TranslationIterator* iterator, 326 void DoComputeAccessorStubFrame(TranslationIterator* iterator,
327 int frame_index, 327 int frame_index,
328 bool is_setter_stub_frame); 328 bool is_setter_stub_frame);
329 void DoComputeCompiledStubFrame(TranslationIterator* iterator, 329 void DoComputeCompiledStubFrame(TranslationIterator* iterator,
330 int frame_index); 330 int frame_index);
331 331
332 void DoTranslateObject(TranslationIterator* iterator, 332 void DoTranslateObject(TranslationIterator* iterator,
333 int object_index, 333 int object_index,
334 int field_index); 334 int field_index);
335 335
336 enum DeoptimizerTranslatedValueType {
337 TRANSLATED_VALUE_IS_NATIVE,
338 TRANSLATED_VALUE_IS_TAGGED
339 };
340
341 void DoTranslateCommand(TranslationIterator* iterator, 336 void DoTranslateCommand(TranslationIterator* iterator,
342 int frame_index, 337 int frame_index,
343 unsigned output_offset, 338 unsigned output_offset);
344 DeoptimizerTranslatedValueType value_type = TRANSLATED_VALUE_IS_TAGGED);
345 339
346 unsigned ComputeInputFrameSize() const; 340 unsigned ComputeInputFrameSize() const;
347 unsigned ComputeFixedSize(JSFunction* function) const; 341 unsigned ComputeFixedSize(JSFunction* function) const;
348 342
349 unsigned ComputeIncomingArgumentSize(JSFunction* function) const; 343 unsigned ComputeIncomingArgumentSize(JSFunction* function) const;
350 unsigned ComputeOutgoingArgumentSize() const; 344 unsigned ComputeOutgoingArgumentSize() const;
351 345
352 Object* ComputeLiteral(int index) const; 346 Object* ComputeLiteral(int index) const;
353 347
354 void AddObjectStart(intptr_t slot_address, int argc, bool is_arguments); 348 void AddObjectStart(intptr_t slot_address, int argc, bool is_arguments);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // Materialized objects. Only used during heap object materialization. 438 // Materialized objects. Only used during heap object materialization.
445 List<Handle<Object> >* materialized_values_; 439 List<Handle<Object> >* materialized_values_;
446 List<Handle<Object> >* materialized_objects_; 440 List<Handle<Object> >* materialized_objects_;
447 int materialization_value_index_; 441 int materialization_value_index_;
448 int materialization_object_index_; 442 int materialization_object_index_;
449 443
450 #ifdef DEBUG 444 #ifdef DEBUG
451 DisallowHeapAllocation* disallow_heap_allocation_; 445 DisallowHeapAllocation* disallow_heap_allocation_;
452 #endif // DEBUG 446 #endif // DEBUG
453 447
454 bool trace_; 448 CodeTracer::Scope* trace_scope_;
455 449
456 static const int table_entry_size_; 450 static const int table_entry_size_;
457 451
458 friend class FrameDescription; 452 friend class FrameDescription;
459 friend class DeoptimizedFrameInfo; 453 friend class DeoptimizedFrameInfo;
460 }; 454 };
461 455
462 456
463 class FrameDescription { 457 class FrameDescription {
464 public: 458 public:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 493
500 void SetFrameSlot(unsigned offset, intptr_t value) { 494 void SetFrameSlot(unsigned offset, intptr_t value) {
501 *GetFrameSlotPointer(offset) = value; 495 *GetFrameSlotPointer(offset) = value;
502 } 496 }
503 497
504 void SetCallerPc(unsigned offset, intptr_t value); 498 void SetCallerPc(unsigned offset, intptr_t value);
505 499
506 void SetCallerFp(unsigned offset, intptr_t value); 500 void SetCallerFp(unsigned offset, intptr_t value);
507 501
508 intptr_t GetRegister(unsigned n) const { 502 intptr_t GetRegister(unsigned n) const {
509 ASSERT(n < ARRAY_SIZE(registers_)); 503 #if DEBUG
504 // This convoluted ASSERT is needed to work around a gcc problem that
505 // improperly detects an array bounds overflow in optimized debug builds
506 // when using a plain ASSERT.
507 if (n >= ARRAY_SIZE(registers_)) {
508 ASSERT(false);
509 return 0;
510 }
511 #endif
510 return registers_[n]; 512 return registers_[n];
511 } 513 }
512 514
513 double GetDoubleRegister(unsigned n) const { 515 double GetDoubleRegister(unsigned n) const {
514 ASSERT(n < ARRAY_SIZE(double_registers_)); 516 ASSERT(n < ARRAY_SIZE(double_registers_));
515 return double_registers_[n]; 517 return double_registers_[n];
516 } 518 }
517 519
518 void SetRegister(unsigned n, intptr_t value) { 520 void SetRegister(unsigned n, intptr_t value) {
519 ASSERT(n < ARRAY_SIZE(registers_)); 521 ASSERT(n < ARRAY_SIZE(registers_));
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 Object** expression_stack_; 926 Object** expression_stack_;
925 int source_position_; 927 int source_position_;
926 928
927 friend class Deoptimizer; 929 friend class Deoptimizer;
928 }; 930 };
929 #endif 931 #endif
930 932
931 } } // namespace v8::internal 933 } } // namespace v8::internal
932 934
933 #endif // V8_DEOPTIMIZER_H_ 935 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/defaults.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698