| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 Isolate* isolate_; | 383 Isolate* isolate_; |
| 384 | 384 |
| 385 DISALLOW_COPY_AND_ASSIGN(StubCache); | 385 DISALLOW_COPY_AND_ASSIGN(StubCache); |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 | 388 |
| 389 // ------------------------------------------------------------------------ | 389 // ------------------------------------------------------------------------ |
| 390 | 390 |
| 391 | 391 |
| 392 // Support functions for IC stubs for callbacks. | 392 // Support functions for IC stubs for callbacks. |
| 393 MaybeObject* LoadCallbackProperty(RUNTIME_CALLING_CONVENTION); | 393 DECLARE_RUNTIME_FUNCTION(MaybeObject*, LoadCallbackProperty); |
| 394 MaybeObject* StoreCallbackProperty(RUNTIME_CALLING_CONVENTION); | 394 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreCallbackProperty); |
| 395 | 395 |
| 396 | 396 |
| 397 // Support functions for IC stubs for interceptors. | 397 // Support functions for IC stubs for interceptors. |
| 398 MaybeObject* LoadPropertyWithInterceptorOnly(RUNTIME_CALLING_CONVENTION); | 398 DECLARE_RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorOnly); |
| 399 MaybeObject* LoadPropertyWithInterceptorForLoad(RUNTIME_CALLING_CONVENTION); | 399 DECLARE_RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorForLoad); |
| 400 MaybeObject* LoadPropertyWithInterceptorForCall(RUNTIME_CALLING_CONVENTION); | 400 DECLARE_RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorForCall); |
| 401 MaybeObject* StoreInterceptorProperty(RUNTIME_CALLING_CONVENTION); | 401 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreInterceptorProperty); |
| 402 MaybeObject* CallInterceptorProperty(RUNTIME_CALLING_CONVENTION); | 402 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CallInterceptorProperty); |
| 403 MaybeObject* KeyedLoadPropertyWithInterceptor(RUNTIME_CALLING_CONVENTION); | 403 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor); |
| 404 | 404 |
| 405 | 405 |
| 406 // The stub compiler compiles stubs for the stub cache. | 406 // The stub compiler compiles stubs for the stub cache. |
| 407 class StubCompiler BASE_EMBEDDED { | 407 class StubCompiler BASE_EMBEDDED { |
| 408 public: | 408 public: |
| 409 StubCompiler() : scope_(), masm_(NULL, 256), failure_(NULL) { } | 409 StubCompiler() : scope_(), masm_(NULL, 256), failure_(NULL) { } |
| 410 | 410 |
| 411 MUST_USE_RESULT MaybeObject* CompileCallInitialize(Code::Flags flags); | 411 MUST_USE_RESULT MaybeObject* CompileCallInitialize(Code::Flags flags); |
| 412 MUST_USE_RESULT MaybeObject* CompileCallPreMonomorphic(Code::Flags flags); | 412 MUST_USE_RESULT MaybeObject* CompileCallPreMonomorphic(Code::Flags flags); |
| 413 MUST_USE_RESULT MaybeObject* CompileCallNormal(Code::Flags flags); | 413 MUST_USE_RESULT MaybeObject* CompileCallNormal(Code::Flags flags); |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( | 852 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( |
| 853 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags); | 853 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags); |
| 854 | 854 |
| 855 private: | 855 private: |
| 856 MaybeObject* GetCode(Code::Flags flags); | 856 MaybeObject* GetCode(Code::Flags flags); |
| 857 }; | 857 }; |
| 858 | 858 |
| 859 } } // namespace v8::internal | 859 } } // namespace v8::internal |
| 860 | 860 |
| 861 #endif // V8_STUB_CACHE_H_ | 861 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |