Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 83b0f49140e07de902782721d0a30be6cf337789..dbdb8c0f12b87022b4f0c4db6de1b94410489212 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -298,16 +298,17 @@ class ToNumberStub: public CodeStub { |
class FastNewClosureStub : public CodeStub { |
public: |
- explicit FastNewClosureStub(StrictModeFlag strict_mode) |
- : strict_mode_(strict_mode) { } |
+ explicit FastNewClosureStub(LanguageMode language_mode) |
+ : language_mode_(language_mode) { } |
void Generate(MacroAssembler* masm); |
private: |
Major MajorKey() { return FastNewClosure; } |
- int MinorKey() { return strict_mode_; } |
+ int MinorKey() { return language_mode_ == CLASSIC_MODE |
+ ? kNonStrictMode : kStrictMode; } |
- StrictModeFlag strict_mode_; |
+ LanguageMode language_mode_; |
}; |