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

Side by Side Diff: runtime/vm/deopt_instructions.h

Issue 1678203002: Remove more feature in product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « runtime/vm/debugger_x64.cc ('k') | runtime/vm/deopt_instructions.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_DEOPT_INSTRUCTIONS_H_ 5 #ifndef VM_DEOPT_INSTRUCTIONS_H_
6 #define VM_DEOPT_INSTRUCTIONS_H_ 6 #define VM_DEOPT_INSTRUCTIONS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_generator.h" 10 #include "vm/code_generator.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 478
479 CpuRegisterSource ToCpuRegisterSource(const Location& loc); 479 CpuRegisterSource ToCpuRegisterSource(const Location& loc);
480 FpuRegisterSource ToFpuRegisterSource(const Location& loc, 480 FpuRegisterSource ToFpuRegisterSource(const Location& loc,
481 Location::Kind expected_stack_slot_kind); 481 Location::Kind expected_stack_slot_kind);
482 482
483 intptr_t FindOrAddObjectInTable(const Object& obj) const; 483 intptr_t FindOrAddObjectInTable(const Object& obj) const;
484 intptr_t FindMaterialization(MaterializeObjectInstr* mat) const; 484 intptr_t FindMaterialization(MaterializeObjectInstr* mat) const;
485 intptr_t CalculateStackIndex(const Location& source_loc) const; 485 intptr_t CalculateStackIndex(const Location& source_loc) const;
486 486
487 intptr_t FrameSize() const { 487 intptr_t FrameSize() const {
488 return instructions_.length() - frame_start_; 488 ASSERT(frame_start_ != -1);
489 const intptr_t frame_size = instructions_.length() - frame_start_;
490 ASSERT(frame_size >= 0);
491 return frame_size;
489 } 492 }
490 493
491 void AddConstant(const Object& obj, intptr_t dest_index); 494 void AddConstant(const Object& obj, intptr_t dest_index);
492 495
493 Zone* zone() const { return zone_; } 496 Zone* zone() const { return zone_; }
494 497
495 Zone* zone_; 498 Zone* zone_;
496 499
497 GrowableArray<DeoptInstr*> instructions_; 500 GrowableArray<DeoptInstr*> instructions_;
498 const intptr_t num_args_; 501 const intptr_t num_args_;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 public BitField<intptr_t, ICData::DeoptReasonId, 0, 8> { }; 551 public BitField<intptr_t, ICData::DeoptReasonId, 0, 8> { };
549 class FlagsField : public BitField<intptr_t, uint32_t, 8, 8> { }; 552 class FlagsField : public BitField<intptr_t, uint32_t, 8, 8> { };
550 553
551 private: 554 private:
552 static const intptr_t kEntrySize = 3; 555 static const intptr_t kEntrySize = 3;
553 }; 556 };
554 557
555 } // namespace dart 558 } // namespace dart
556 559
557 #endif // VM_DEOPT_INSTRUCTIONS_H_ 560 #endif // VM_DEOPT_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger_x64.cc ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698