OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 | 529 |
530 LanguageMode language_mode() const { return language_mode_; } | 530 LanguageMode language_mode() const { return language_mode_; } |
531 bool is_generator() const { return is_generator_; } | 531 bool is_generator() const { return is_generator_; } |
532 | 532 |
533 private: | 533 private: |
534 class StrictModeBits: public BitField<bool, 0, 1> {}; | 534 class StrictModeBits: public BitField<bool, 0, 1> {}; |
535 class IsGeneratorBits: public BitField<bool, 1, 1> {}; | 535 class IsGeneratorBits: public BitField<bool, 1, 1> {}; |
536 | 536 |
537 Major MajorKey() { return FastNewClosure; } | 537 Major MajorKey() { return FastNewClosure; } |
538 int NotMissMinorKey() { | 538 int NotMissMinorKey() { |
539 return StrictModeBits::encode(language_mode_ != CLASSIC_MODE) | | 539 return StrictModeBits::encode(language_mode_ != SLOPPY_MODE) | |
540 IsGeneratorBits::encode(is_generator_); | 540 IsGeneratorBits::encode(is_generator_); |
541 } | 541 } |
542 | 542 |
543 LanguageMode language_mode_; | 543 LanguageMode language_mode_; |
544 bool is_generator_; | 544 bool is_generator_; |
545 }; | 545 }; |
546 | 546 |
547 | 547 |
548 class FastNewContextStub V8_FINAL : public HydrogenCodeStub { | 548 class FastNewContextStub V8_FINAL : public HydrogenCodeStub { |
549 public: | 549 public: |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1520 virtual void PrintName(StringStream* stream) { | 1520 virtual void PrintName(StringStream* stream) { |
1521 stream->Add("JSConstructEntryStub"); | 1521 stream->Add("JSConstructEntryStub"); |
1522 } | 1522 } |
1523 }; | 1523 }; |
1524 | 1524 |
1525 | 1525 |
1526 class ArgumentsAccessStub: public PlatformCodeStub { | 1526 class ArgumentsAccessStub: public PlatformCodeStub { |
1527 public: | 1527 public: |
1528 enum Type { | 1528 enum Type { |
1529 READ_ELEMENT, | 1529 READ_ELEMENT, |
1530 NEW_NON_STRICT_FAST, | 1530 NEW_SLOPPY_FAST, |
1531 NEW_NON_STRICT_SLOW, | 1531 NEW_SLOPPY_SLOW, |
1532 NEW_STRICT | 1532 NEW_STRICT |
1533 }; | 1533 }; |
1534 | 1534 |
1535 explicit ArgumentsAccessStub(Type type) : type_(type) { } | 1535 explicit ArgumentsAccessStub(Type type) : type_(type) { } |
1536 | 1536 |
1537 private: | 1537 private: |
1538 Type type_; | 1538 Type type_; |
1539 | 1539 |
1540 Major MajorKey() { return ArgumentsAccess; } | 1540 Major MajorKey() { return ArgumentsAccess; } |
1541 int MinorKey() { return type_; } | 1541 int MinorKey() { return type_; } |
1542 | 1542 |
1543 void Generate(MacroAssembler* masm); | 1543 void Generate(MacroAssembler* masm); |
1544 void GenerateReadElement(MacroAssembler* masm); | 1544 void GenerateReadElement(MacroAssembler* masm); |
1545 void GenerateNewStrict(MacroAssembler* masm); | 1545 void GenerateNewStrict(MacroAssembler* masm); |
1546 void GenerateNewNonStrictFast(MacroAssembler* masm); | 1546 void GenerateNewSloppyFast(MacroAssembler* masm); |
1547 void GenerateNewNonStrictSlow(MacroAssembler* masm); | 1547 void GenerateNewSloppySlow(MacroAssembler* masm); |
1548 | 1548 |
1549 virtual void PrintName(StringStream* stream); | 1549 virtual void PrintName(StringStream* stream); |
1550 }; | 1550 }; |
1551 | 1551 |
1552 | 1552 |
1553 class RegExpExecStub: public PlatformCodeStub { | 1553 class RegExpExecStub: public PlatformCodeStub { |
1554 public: | 1554 public: |
1555 RegExpExecStub() { } | 1555 RegExpExecStub() { } |
1556 | 1556 |
1557 private: | 1557 private: |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2481 | 2481 |
2482 | 2482 |
2483 class CallDescriptors { | 2483 class CallDescriptors { |
2484 public: | 2484 public: |
2485 static void InitializeForIsolate(Isolate* isolate); | 2485 static void InitializeForIsolate(Isolate* isolate); |
2486 }; | 2486 }; |
2487 | 2487 |
2488 } } // namespace v8::internal | 2488 } } // namespace v8::internal |
2489 | 2489 |
2490 #endif // V8_CODE_STUBS_H_ | 2490 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |