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

Side by Side Diff: src/code-stubs.h

Issue 8417035: Introduce extended mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed more comments. Created 9 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/bootstrapper.cc ('k') | src/compilation-cache.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 void Generate(MacroAssembler* masm); 291 void Generate(MacroAssembler* masm);
292 292
293 private: 293 private:
294 Major MajorKey() { return ToNumber; } 294 Major MajorKey() { return ToNumber; }
295 int MinorKey() { return 0; } 295 int MinorKey() { return 0; }
296 }; 296 };
297 297
298 298
299 class FastNewClosureStub : public CodeStub { 299 class FastNewClosureStub : public CodeStub {
300 public: 300 public:
301 explicit FastNewClosureStub(StrictModeFlag strict_mode) 301 explicit FastNewClosureStub(LanguageMode language_mode)
302 : strict_mode_(strict_mode) { } 302 : language_mode_(language_mode) { }
303 303
304 void Generate(MacroAssembler* masm); 304 void Generate(MacroAssembler* masm);
305 305
306 private: 306 private:
307 Major MajorKey() { return FastNewClosure; } 307 Major MajorKey() { return FastNewClosure; }
308 int MinorKey() { return strict_mode_; } 308 int MinorKey() { return language_mode_ == CLASSIC_MODE
309 ? kNonStrictMode : kStrictMode; }
309 310
310 StrictModeFlag strict_mode_; 311 LanguageMode language_mode_;
311 }; 312 };
312 313
313 314
314 class FastNewContextStub : public CodeStub { 315 class FastNewContextStub : public CodeStub {
315 public: 316 public:
316 static const int kMaximumSlots = 64; 317 static const int kMaximumSlots = 64;
317 318
318 explicit FastNewContextStub(int slots) : slots_(slots) { 319 explicit FastNewContextStub(int slots) : slots_(slots) {
319 ASSERT(slots_ > 0 && slots_ <= kMaximumSlots); 320 ASSERT(slots_ > 0 && slots_ <= kMaximumSlots);
320 } 321 }
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 int MinorKey() { return 0; } 1063 int MinorKey() { return 0; }
1063 1064
1064 void Generate(MacroAssembler* masm); 1065 void Generate(MacroAssembler* masm);
1065 1066
1066 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub); 1067 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub);
1067 }; 1068 };
1068 1069
1069 } } // namespace v8::internal 1070 } } // namespace v8::internal
1070 1071
1071 #endif // V8_CODE_STUBS_H_ 1072 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compilation-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698