OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 Handle<Code> ComputeCallMiss(int argc); | 319 Handle<Code> ComputeCallMiss(int argc); |
320 | 320 |
321 | 321 |
322 // The stub compiler compiles stubs for the stub cache. | 322 // The stub compiler compiles stubs for the stub cache. |
323 class StubCompiler BASE_EMBEDDED { | 323 class StubCompiler BASE_EMBEDDED { |
324 public: | 324 public: |
325 enum CheckType { | 325 enum CheckType { |
326 RECEIVER_MAP_CHECK, | 326 RECEIVER_MAP_CHECK, |
327 STRING_CHECK, | 327 STRING_CHECK, |
328 NUMBER_CHECK, | 328 NUMBER_CHECK, |
329 BOOLEAN_CHECK, | 329 BOOLEAN_CHECK |
330 JSARRAY_HAS_FAST_ELEMENTS_CHECK | |
331 }; | 330 }; |
332 | 331 |
333 StubCompiler() : scope_(), masm_(NULL, 256), failure_(NULL) { } | 332 StubCompiler() : scope_(), masm_(NULL, 256), failure_(NULL) { } |
334 | 333 |
335 Object* CompileCallInitialize(Code::Flags flags); | 334 Object* CompileCallInitialize(Code::Flags flags); |
336 Object* CompileCallPreMonomorphic(Code::Flags flags); | 335 Object* CompileCallPreMonomorphic(Code::Flags flags); |
337 Object* CompileCallNormal(Code::Flags flags); | 336 Object* CompileCallNormal(Code::Flags flags); |
338 Object* CompileCallMegamorphic(Code::Flags flags); | 337 Object* CompileCallMegamorphic(Code::Flags flags); |
339 Object* CompileCallMiss(Code::Flags flags); | 338 Object* CompileCallMiss(Code::Flags flags); |
340 #ifdef ENABLE_DEBUGGER_SUPPORT | 339 #ifdef ENABLE_DEBUGGER_SUPPORT |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 Object* CompileConstructStub(SharedFunctionInfo* shared); | 586 Object* CompileConstructStub(SharedFunctionInfo* shared); |
588 | 587 |
589 private: | 588 private: |
590 Object* GetCode(); | 589 Object* GetCode(); |
591 }; | 590 }; |
592 | 591 |
593 | 592 |
594 } } // namespace v8::internal | 593 } } // namespace v8::internal |
595 | 594 |
596 #endif // V8_STUB_CACHE_H_ | 595 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |