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

Unified Diff: runtime/vm/intermediate_language.h

Issue 17315006: Scale the OSR optimization threshold by loop nesting depth. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « runtime/vm/il_printer.cc ('k') | runtime/vm/intermediate_language_ia32.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 2285325310dcff82bb501c9e546584a7f26ea715..94da04591a7490975cafbeb80f00eb6c4d8e7e15 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -5920,11 +5920,12 @@ class UnarySmiOpInstr : public TemplateDefinition<1> {
class CheckStackOverflowInstr : public TemplateInstruction<0> {
public:
- CheckStackOverflowInstr(intptr_t token_pos, bool in_loop)
- : token_pos_(token_pos), in_loop_(in_loop) {}
+ CheckStackOverflowInstr(intptr_t token_pos, intptr_t loop_depth)
+ : token_pos_(token_pos), loop_depth_(loop_depth) {}
intptr_t token_pos() const { return token_pos_; }
- bool in_loop() const { return in_loop_; }
+ bool in_loop() const { return loop_depth_ > 0; }
+ intptr_t loop_depth() const { return loop_depth_; }
DECLARE_INSTRUCTION(CheckStackOverflow)
@@ -5940,7 +5941,7 @@ class CheckStackOverflowInstr : public TemplateInstruction<0> {
private:
const intptr_t token_pos_;
- const bool in_loop_;
+ const intptr_t loop_depth_;
DISALLOW_COPY_AND_ASSIGN(CheckStackOverflowInstr);
};
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698