OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_STUB_CACHE_H_ | 5 #ifndef V8_STUB_CACHE_H_ |
6 #define V8_STUB_CACHE_H_ | 6 #define V8_STUB_CACHE_H_ |
7 | 7 |
8 #include "allocation.h" | 8 #include "allocation.h" |
9 #include "arguments.h" | 9 #include "arguments.h" |
10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 Register CheckPrototypes(Handle<HeapType> type, | 369 Register CheckPrototypes(Handle<HeapType> type, |
370 Register object_reg, | 370 Register object_reg, |
371 Handle<JSObject> holder, | 371 Handle<JSObject> holder, |
372 Register holder_reg, | 372 Register holder_reg, |
373 Register scratch1, | 373 Register scratch1, |
374 Register scratch2, | 374 Register scratch2, |
375 Handle<Name> name, | 375 Handle<Name> name, |
376 Label* miss, | 376 Label* miss, |
377 PrototypeCheckType check = CHECK_ALL_MAPS); | 377 PrototypeCheckType check = CHECK_ALL_MAPS); |
378 | 378 |
379 void GenerateBooleanCheck(Register object, Label* miss); | |
380 | |
381 static void GenerateFastApiCall(MacroAssembler* masm, | 379 static void GenerateFastApiCall(MacroAssembler* masm, |
382 const CallOptimization& optimization, | 380 const CallOptimization& optimization, |
383 Handle<Map> receiver_map, | 381 Handle<Map> receiver_map, |
384 Register receiver, | 382 Register receiver, |
385 Register scratch, | 383 Register scratch, |
386 bool is_store, | 384 bool is_store, |
387 int argc, | 385 int argc, |
388 Register* values); | 386 Register* values); |
389 | 387 |
390 protected: | 388 protected: |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 Handle<JSFunction> constant_function_; | 826 Handle<JSFunction> constant_function_; |
829 bool is_simple_api_call_; | 827 bool is_simple_api_call_; |
830 Handle<FunctionTemplateInfo> expected_receiver_type_; | 828 Handle<FunctionTemplateInfo> expected_receiver_type_; |
831 Handle<CallHandlerInfo> api_call_info_; | 829 Handle<CallHandlerInfo> api_call_info_; |
832 }; | 830 }; |
833 | 831 |
834 | 832 |
835 } } // namespace v8::internal | 833 } } // namespace v8::internal |
836 | 834 |
837 #endif // V8_STUB_CACHE_H_ | 835 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |