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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 // Setup call kind marking in ecx. The method takes ecx as an | 349 // Setup call kind marking in ecx. The method takes ecx as an |
350 // explicit first parameter to make the code more readable at the | 350 // explicit first parameter to make the code more readable at the |
351 // call sites. | 351 // call sites. |
352 void SetCallKind(Register dst, CallKind kind); | 352 void SetCallKind(Register dst, CallKind kind); |
353 | 353 |
354 // Invoke the JavaScript function code by either calling or jumping. | 354 // Invoke the JavaScript function code by either calling or jumping. |
355 void InvokeCode(Register code, | 355 void InvokeCode(Register code, |
356 const ParameterCount& expected, | 356 const ParameterCount& expected, |
357 const ParameterCount& actual, | 357 const ParameterCount& actual, |
358 InvokeFlag flag, | 358 InvokeFlag flag, |
359 const CallWrapper& call_wrapper = NullCallWrapper(), | 359 const CallWrapper& call_wrapper, |
360 CallKind call_kind = CALL_AS_METHOD); | 360 CallKind call_kind); |
361 | 361 |
362 void InvokeCode(Handle<Code> code, | 362 void InvokeCode(Handle<Code> code, |
363 const ParameterCount& expected, | 363 const ParameterCount& expected, |
364 const ParameterCount& actual, | 364 const ParameterCount& actual, |
365 RelocInfo::Mode rmode, | 365 RelocInfo::Mode rmode, |
366 InvokeFlag flag, | 366 InvokeFlag flag, |
367 CallKind call_kind = CALL_AS_METHOD); | 367 CallKind call_kind); |
368 | 368 |
369 // Invoke the JavaScript function in the given register. Changes the | 369 // Invoke the JavaScript function in the given register. Changes the |
370 // current context to the context in the function before invoking. | 370 // current context to the context in the function before invoking. |
371 void InvokeFunction(Register function, | 371 void InvokeFunction(Register function, |
372 const ParameterCount& actual, | 372 const ParameterCount& actual, |
373 InvokeFlag flag, | 373 InvokeFlag flag, |
374 const CallWrapper& call_wrapper = NullCallWrapper(), | 374 const CallWrapper& call_wrapper, |
375 CallKind call_kind = CALL_AS_METHOD); | 375 CallKind call_kind); |
376 | 376 |
377 void InvokeFunction(JSFunction* function, | 377 void InvokeFunction(JSFunction* function, |
378 const ParameterCount& actual, | 378 const ParameterCount& actual, |
379 InvokeFlag flag); | 379 InvokeFlag flag, |
| 380 CallKind call_kind); |
380 | 381 |
381 void IsObjectJSObjectType(Register heap_object, | 382 void IsObjectJSObjectType(Register heap_object, |
382 Register map, | 383 Register map, |
383 Register scratch, | 384 Register scratch, |
384 Label* fail); | 385 Label* fail); |
385 | 386 |
386 void IsInstanceJSObjectType(Register map, | 387 void IsInstanceJSObjectType(Register map, |
387 Register scratch, | 388 Register scratch, |
388 Label* fail); | 389 Label* fail); |
389 | 390 |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 RelocInfo::Mode rmode, | 1030 RelocInfo::Mode rmode, |
1030 Condition cond = al); | 1031 Condition cond = al); |
1031 | 1032 |
1032 // Helper functions for generating invokes. | 1033 // Helper functions for generating invokes. |
1033 void InvokePrologue(const ParameterCount& expected, | 1034 void InvokePrologue(const ParameterCount& expected, |
1034 const ParameterCount& actual, | 1035 const ParameterCount& actual, |
1035 Handle<Code> code_constant, | 1036 Handle<Code> code_constant, |
1036 Register code_reg, | 1037 Register code_reg, |
1037 Label* done, | 1038 Label* done, |
1038 InvokeFlag flag, | 1039 InvokeFlag flag, |
1039 const CallWrapper& call_wrapper = NullCallWrapper(), | 1040 const CallWrapper& call_wrapper, |
1040 CallKind call_kind = CALL_AS_METHOD); | 1041 CallKind call_kind); |
1041 | 1042 |
1042 // Activation support. | 1043 // Activation support. |
1043 void EnterFrame(StackFrame::Type type); | 1044 void EnterFrame(StackFrame::Type type); |
1044 void LeaveFrame(StackFrame::Type type); | 1045 void LeaveFrame(StackFrame::Type type); |
1045 | 1046 |
1046 void InitializeNewString(Register string, | 1047 void InitializeNewString(Register string, |
1047 Register length, | 1048 Register length, |
1048 Heap::RootListIndex map_index, | 1049 Heap::RootListIndex map_index, |
1049 Register scratch1, | 1050 Register scratch1, |
1050 Register scratch2); | 1051 Register scratch2); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1118 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1118 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1119 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1119 #else | 1120 #else |
1120 #define ACCESS_MASM(masm) masm-> | 1121 #define ACCESS_MASM(masm) masm-> |
1121 #endif | 1122 #endif |
1122 | 1123 |
1123 | 1124 |
1124 } } // namespace v8::internal | 1125 } } // namespace v8::internal |
1125 | 1126 |
1126 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1127 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |