| OLD | NEW |
| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 private: | 271 private: |
| 272 Major MajorKey() { return ToNumber; } | 272 Major MajorKey() { return ToNumber; } |
| 273 int MinorKey() { return 0; } | 273 int MinorKey() { return 0; } |
| 274 const char* GetName() { return "ToNumberStub"; } | 274 const char* GetName() { return "ToNumberStub"; } |
| 275 }; | 275 }; |
| 276 | 276 |
| 277 | 277 |
| 278 class FastNewClosureStub : public CodeStub { | 278 class FastNewClosureStub : public CodeStub { |
| 279 public: | 279 public: |
| 280 FastNewClosureStub(StrictModeFlag strict_mode) |
| 281 : strict_mode_(strict_mode) { } |
| 282 |
| 280 void Generate(MacroAssembler* masm); | 283 void Generate(MacroAssembler* masm); |
| 281 | 284 |
| 282 private: | 285 private: |
| 283 const char* GetName() { return "FastNewClosureStub"; } | 286 const char* GetName() { return "FastNewClosureStub"; } |
| 284 Major MajorKey() { return FastNewClosure; } | 287 Major MajorKey() { return FastNewClosure; } |
| 285 int MinorKey() { return 0; } | 288 int MinorKey() { return strict_mode_; } |
| 289 |
| 290 StrictModeFlag strict_mode_; |
| 286 }; | 291 }; |
| 287 | 292 |
| 288 | 293 |
| 289 class FastNewContextStub : public CodeStub { | 294 class FastNewContextStub : public CodeStub { |
| 290 public: | 295 public: |
| 291 static const int kMaximumSlots = 64; | 296 static const int kMaximumSlots = 64; |
| 292 | 297 |
| 293 explicit FastNewContextStub(int slots) : slots_(slots) { | 298 explicit FastNewContextStub(int slots) : slots_(slots) { |
| 294 ASSERT(slots_ > 0 && slots <= kMaximumSlots); | 299 ASSERT(slots_ > 0 && slots <= kMaximumSlots); |
| 295 } | 300 } |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 private: | 939 private: |
| 935 MacroAssembler* masm_; | 940 MacroAssembler* masm_; |
| 936 bool previous_allow_; | 941 bool previous_allow_; |
| 937 | 942 |
| 938 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); | 943 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); |
| 939 }; | 944 }; |
| 940 | 945 |
| 941 } } // namespace v8::internal | 946 } } // namespace v8::internal |
| 942 | 947 |
| 943 #endif // V8_CODE_STUBS_H_ | 948 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |