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 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 // Non-instance prototype: Fetch prototype from constructor field | 1700 // Non-instance prototype: Fetch prototype from constructor field |
1701 // in initial map. | 1701 // in initial map. |
1702 bind(&non_instance); | 1702 bind(&non_instance); |
1703 mov(result, FieldOperand(result, Map::kConstructorOffset)); | 1703 mov(result, FieldOperand(result, Map::kConstructorOffset)); |
1704 | 1704 |
1705 // All done. | 1705 // All done. |
1706 bind(&done); | 1706 bind(&done); |
1707 } | 1707 } |
1708 | 1708 |
1709 | 1709 |
1710 void MacroAssembler::CallStub(CodeStub* stub, unsigned ast_id) { | 1710 void MacroAssembler::CallStub(CodeStub* stub, TypeFeedbackId ast_id) { |
1711 ASSERT(AllowThisStubCall(stub)); // Calls are not allowed in some stubs. | 1711 ASSERT(AllowThisStubCall(stub)); // Calls are not allowed in some stubs. |
1712 call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id); | 1712 call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id); |
1713 } | 1713 } |
1714 | 1714 |
1715 | 1715 |
1716 void MacroAssembler::TailCallStub(CodeStub* stub) { | 1716 void MacroAssembler::TailCallStub(CodeStub* stub) { |
1717 ASSERT(allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe()); | 1717 ASSERT(allow_stub_calls_ || stub->CompilingCallsToThisStubIsGCSafe()); |
1718 jmp(stub->GetCode(), RelocInfo::CODE_TARGET); | 1718 jmp(stub->GetCode(), RelocInfo::CODE_TARGET); |
1719 } | 1719 } |
1720 | 1720 |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2916 // Load the prototype from the map and loop if non-null. | 2916 // Load the prototype from the map and loop if non-null. |
2917 bind(&check_prototype); | 2917 bind(&check_prototype); |
2918 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); | 2918 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); |
2919 cmp(ecx, isolate()->factory()->null_value()); | 2919 cmp(ecx, isolate()->factory()->null_value()); |
2920 j(not_equal, &next); | 2920 j(not_equal, &next); |
2921 } | 2921 } |
2922 | 2922 |
2923 } } // namespace v8::internal | 2923 } } // namespace v8::internal |
2924 | 2924 |
2925 #endif // V8_TARGET_ARCH_IA32 | 2925 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |