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 4555 matching lines...) Loading... |
4566 __ cmp(scratch, kSymbolTag | kStringTag); | 4566 __ cmp(scratch, kSymbolTag | kStringTag); |
4567 __ j(not_equal, label); | 4567 __ j(not_equal, label); |
4568 } | 4568 } |
4569 | 4569 |
4570 | 4570 |
4571 void StackCheckStub::Generate(MacroAssembler* masm) { | 4571 void StackCheckStub::Generate(MacroAssembler* masm) { |
4572 __ TailCallRuntime(Runtime::kStackGuard, 0, 1); | 4572 __ TailCallRuntime(Runtime::kStackGuard, 0, 1); |
4573 } | 4573 } |
4574 | 4574 |
4575 | 4575 |
| 4576 void InterruptStub::Generate(MacroAssembler* masm) { |
| 4577 __ TailCallRuntime(Runtime::kInterrupt, 0, 1); |
| 4578 } |
| 4579 |
| 4580 |
4576 static void GenerateRecordCallTarget(MacroAssembler* masm) { | 4581 static void GenerateRecordCallTarget(MacroAssembler* masm) { |
4577 // Cache the called function in a global property cell. Cache states | 4582 // Cache the called function in a global property cell. Cache states |
4578 // are uninitialized, monomorphic (indicated by a JSFunction), and | 4583 // are uninitialized, monomorphic (indicated by a JSFunction), and |
4579 // megamorphic. | 4584 // megamorphic. |
4580 // ebx : cache cell for call target | 4585 // ebx : cache cell for call target |
4581 // edi : the function to call | 4586 // edi : the function to call |
4582 Isolate* isolate = masm->isolate(); | 4587 Isolate* isolate = masm->isolate(); |
4583 Label initialize, done; | 4588 Label initialize, done; |
4584 | 4589 |
4585 // Load the cache state into ecx. | 4590 // Load the cache state into ecx. |
(...skipping 2786 matching lines...) Loading... |
7372 false); | 7377 false); |
7373 __ pop(edx); | 7378 __ pop(edx); |
7374 __ ret(0); | 7379 __ ret(0); |
7375 } | 7380 } |
7376 | 7381 |
7377 #undef __ | 7382 #undef __ |
7378 | 7383 |
7379 } } // namespace v8::internal | 7384 } } // namespace v8::internal |
7380 | 7385 |
7381 #endif // V8_TARGET_ARCH_IA32 | 7386 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |