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

Unified Diff: runtime/vm/intermediate_language.h

Issue 838763003: Use a fixed-size typed array for the dispatch offsets table. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 370bd8fb144161cc1035d7c98ce6b73d01c80c0a..21f42febe63b15a72d30894f197efb49d0355071 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -2199,7 +2199,7 @@ class GotoInstr : public TemplateInstruction<0, NoThrow> {
// to IndirectGoto as an input.
class IndirectGotoInstr : public TemplateInstruction<1, NoThrow> {
public:
- IndirectGotoInstr(GrowableObjectArray* offsets,
+ IndirectGotoInstr(TypedData* offsets,
Value* offset_from_start)
: offsets_(*offsets) {
SetInputAt(0, offset_from_start);
@@ -2228,12 +2228,12 @@ class IndirectGotoInstr : public TemplateInstruction<1, NoThrow> {
virtual void PrintTo(BufferFormatter* f) const;
- const GrowableObjectArray& offsets() const { return offsets_; }
+ const TypedData& offsets() const { return offsets_; }
void ComputeOffsetTable(Isolate* isolate);
private:
GrowableArray<TargetEntryInstr*> successors_;
- GrowableObjectArray& offsets_;
+ TypedData& offsets_;
};
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698