| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 CallKind call_kind); | 342 CallKind call_kind); |
| 343 | 343 |
| 344 // Invoke the JavaScript function in the given register. Changes the | 344 // Invoke the JavaScript function in the given register. Changes the |
| 345 // current context to the context in the function before invoking. | 345 // current context to the context in the function before invoking. |
| 346 void InvokeFunction(Register function, | 346 void InvokeFunction(Register function, |
| 347 const ParameterCount& actual, | 347 const ParameterCount& actual, |
| 348 InvokeFlag flag, | 348 InvokeFlag flag, |
| 349 const CallWrapper& call_wrapper, | 349 const CallWrapper& call_wrapper, |
| 350 CallKind call_kind); | 350 CallKind call_kind); |
| 351 | 351 |
| 352 void InvokeFunction(Register function, |
| 353 const ParameterCount& expected, |
| 354 const ParameterCount& actual, |
| 355 InvokeFlag flag, |
| 356 const CallWrapper& call_wrapper, |
| 357 CallKind call_kind); |
| 358 |
| 352 void InvokeFunction(Handle<JSFunction> function, | 359 void InvokeFunction(Handle<JSFunction> function, |
| 353 const ParameterCount& expected, | 360 const ParameterCount& expected, |
| 354 const ParameterCount& actual, | 361 const ParameterCount& actual, |
| 355 InvokeFlag flag, | 362 InvokeFlag flag, |
| 356 const CallWrapper& call_wrapper, | 363 const CallWrapper& call_wrapper, |
| 357 CallKind call_kind); | 364 CallKind call_kind); |
| 358 | 365 |
| 359 // Invoke specified builtin JavaScript function. Adds an entry to | 366 // Invoke specified builtin JavaScript function. Adds an entry to |
| 360 // the unresolved list if the name does not resolve. | 367 // the unresolved list if the name does not resolve. |
| 361 void InvokeBuiltin(Builtins::JavaScript id, | 368 void InvokeBuiltin(Builtins::JavaScript id, |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 | 905 |
| 899 // Print a message to stdout and abort execution. | 906 // Print a message to stdout and abort execution. |
| 900 void Abort(BailoutReason reason); | 907 void Abort(BailoutReason reason); |
| 901 | 908 |
| 902 // Check that the stack is aligned. | 909 // Check that the stack is aligned. |
| 903 void CheckStackAlignment(); | 910 void CheckStackAlignment(); |
| 904 | 911 |
| 905 // Verify restrictions about code generated in stubs. | 912 // Verify restrictions about code generated in stubs. |
| 906 void set_generating_stub(bool value) { generating_stub_ = value; } | 913 void set_generating_stub(bool value) { generating_stub_ = value; } |
| 907 bool generating_stub() { return generating_stub_; } | 914 bool generating_stub() { return generating_stub_; } |
| 908 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | |
| 909 bool allow_stub_calls() { return allow_stub_calls_; } | |
| 910 void set_has_frame(bool value) { has_frame_ = value; } | 915 void set_has_frame(bool value) { has_frame_ = value; } |
| 911 bool has_frame() { return has_frame_; } | 916 bool has_frame() { return has_frame_; } |
| 912 inline bool AllowThisStubCall(CodeStub* stub); | 917 inline bool AllowThisStubCall(CodeStub* stub); |
| 913 | 918 |
| 914 // --------------------------------------------------------------------------- | 919 // --------------------------------------------------------------------------- |
| 915 // String utilities. | 920 // String utilities. |
| 916 | 921 |
| 917 // Generate code to do a lookup in the number string cache. If the number in | 922 // Generate code to do a lookup in the number string cache. If the number in |
| 918 // the register object is found in the cache the generated code falls through | 923 // the register object is found in the cache the generated code falls through |
| 919 // with the result in the result register. The object and the result register | 924 // with the result in the result register. The object and the result register |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 j(equal, memento_found); | 990 j(equal, memento_found); |
| 986 bind(&no_memento_found); | 991 bind(&no_memento_found); |
| 987 } | 992 } |
| 988 | 993 |
| 989 // Jumps to found label if a prototype map has dictionary elements. | 994 // Jumps to found label if a prototype map has dictionary elements. |
| 990 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, | 995 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, |
| 991 Register scratch1, Label* found); | 996 Register scratch1, Label* found); |
| 992 | 997 |
| 993 private: | 998 private: |
| 994 bool generating_stub_; | 999 bool generating_stub_; |
| 995 bool allow_stub_calls_; | |
| 996 bool has_frame_; | 1000 bool has_frame_; |
| 997 // This handle will be patched with the code object on installation. | 1001 // This handle will be patched with the code object on installation. |
| 998 Handle<Object> code_object_; | 1002 Handle<Object> code_object_; |
| 999 | 1003 |
| 1000 // Helper functions for generating invokes. | 1004 // Helper functions for generating invokes. |
| 1001 void InvokePrologue(const ParameterCount& expected, | 1005 void InvokePrologue(const ParameterCount& expected, |
| 1002 const ParameterCount& actual, | 1006 const ParameterCount& actual, |
| 1003 Handle<Code> code_constant, | 1007 Handle<Code> code_constant, |
| 1004 const Operand& code_operand, | 1008 const Operand& code_operand, |
| 1005 Label* done, | 1009 Label* done, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 } \ | 1133 } \ |
| 1130 masm-> | 1134 masm-> |
| 1131 #else | 1135 #else |
| 1132 #define ACCESS_MASM(masm) masm-> | 1136 #define ACCESS_MASM(masm) masm-> |
| 1133 #endif | 1137 #endif |
| 1134 | 1138 |
| 1135 | 1139 |
| 1136 } } // namespace v8::internal | 1140 } } // namespace v8::internal |
| 1137 | 1141 |
| 1138 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1142 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |