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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 DECLARE_RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorForLoad); | 401 DECLARE_RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorForLoad); |
402 DECLARE_RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorForCall); | 402 DECLARE_RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorForCall); |
403 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreInterceptorProperty); | 403 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreInterceptorProperty); |
404 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CallInterceptorProperty); | 404 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CallInterceptorProperty); |
405 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor); | 405 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor); |
406 | 406 |
407 | 407 |
408 // The stub compiler compiles stubs for the stub cache. | 408 // The stub compiler compiles stubs for the stub cache. |
409 class StubCompiler BASE_EMBEDDED { | 409 class StubCompiler BASE_EMBEDDED { |
410 public: | 410 public: |
411 StubCompiler() : scope_(), masm_(NULL, 256), failure_(NULL) { } | 411 StubCompiler() |
| 412 : scope_(), masm_(Isolate::Current(), NULL, 256), failure_(NULL) { } |
412 | 413 |
413 MUST_USE_RESULT MaybeObject* CompileCallInitialize(Code::Flags flags); | 414 MUST_USE_RESULT MaybeObject* CompileCallInitialize(Code::Flags flags); |
414 MUST_USE_RESULT MaybeObject* CompileCallPreMonomorphic(Code::Flags flags); | 415 MUST_USE_RESULT MaybeObject* CompileCallPreMonomorphic(Code::Flags flags); |
415 MUST_USE_RESULT MaybeObject* CompileCallNormal(Code::Flags flags); | 416 MUST_USE_RESULT MaybeObject* CompileCallNormal(Code::Flags flags); |
416 MUST_USE_RESULT MaybeObject* CompileCallMegamorphic(Code::Flags flags); | 417 MUST_USE_RESULT MaybeObject* CompileCallMegamorphic(Code::Flags flags); |
417 MUST_USE_RESULT MaybeObject* CompileCallMiss(Code::Flags flags); | 418 MUST_USE_RESULT MaybeObject* CompileCallMiss(Code::Flags flags); |
418 #ifdef ENABLE_DEBUGGER_SUPPORT | 419 #ifdef ENABLE_DEBUGGER_SUPPORT |
419 MUST_USE_RESULT MaybeObject* CompileCallDebugBreak(Code::Flags flags); | 420 MUST_USE_RESULT MaybeObject* CompileCallDebugBreak(Code::Flags flags); |
420 MUST_USE_RESULT MaybeObject* CompileCallDebugPrepareStepIn(Code::Flags flags); | 421 MUST_USE_RESULT MaybeObject* CompileCallDebugPrepareStepIn(Code::Flags flags); |
421 #endif | 422 #endif |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( | 857 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( |
857 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags); | 858 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags); |
858 | 859 |
859 private: | 860 private: |
860 MaybeObject* GetCode(Code::Flags flags); | 861 MaybeObject* GetCode(Code::Flags flags); |
861 }; | 862 }; |
862 | 863 |
863 } } // namespace v8::internal | 864 } } // namespace v8::internal |
864 | 865 |
865 #endif // V8_STUB_CACHE_H_ | 866 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |