| 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 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 // in initial map. | 1398 // in initial map. |
| 1399 bind(&non_instance); | 1399 bind(&non_instance); |
| 1400 mov(result, FieldOperand(result, Map::kConstructorOffset)); | 1400 mov(result, FieldOperand(result, Map::kConstructorOffset)); |
| 1401 | 1401 |
| 1402 // All done. | 1402 // All done. |
| 1403 bind(&done); | 1403 bind(&done); |
| 1404 } | 1404 } |
| 1405 | 1405 |
| 1406 | 1406 |
| 1407 void MacroAssembler::CallStub(CodeStub* stub, unsigned ast_id) { | 1407 void MacroAssembler::CallStub(CodeStub* stub, unsigned ast_id) { |
| 1408 // TODO(1599): Do not call stubs from stubs that do not allow stub calls. |
| 1408 // ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs. | 1409 // ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs. |
| 1409 // TODO(gc): Fix this! | |
| 1410 call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id); | 1410 call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id); |
| 1411 } | 1411 } |
| 1412 | 1412 |
| 1413 | 1413 |
| 1414 MaybeObject* MacroAssembler::TryCallStub(CodeStub* stub) { | 1414 MaybeObject* MacroAssembler::TryCallStub(CodeStub* stub) { |
| 1415 ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs. | 1415 ASSERT(allow_stub_calls()); // Calls are not allowed in some stubs. |
| 1416 Object* result; | 1416 Object* result; |
| 1417 { MaybeObject* maybe_result = stub->TryGetCode(); | 1417 { MaybeObject* maybe_result = stub->TryGetCode(); |
| 1418 if (!maybe_result->ToObject(&result)) return maybe_result; | 1418 if (!maybe_result->ToObject(&result)) return maybe_result; |
| 1419 } | 1419 } |
| (...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2522 and_(bitmap_scratch, Immediate(~Page::kPageAlignmentMask)); | 2522 and_(bitmap_scratch, Immediate(~Page::kPageAlignmentMask)); |
| 2523 add(Operand(bitmap_scratch, MemoryChunk::kLiveBytesOffset), | 2523 add(Operand(bitmap_scratch, MemoryChunk::kLiveBytesOffset), |
| 2524 length); | 2524 length); |
| 2525 | 2525 |
| 2526 bind(&done); | 2526 bind(&done); |
| 2527 } | 2527 } |
| 2528 | 2528 |
| 2529 } } // namespace v8::internal | 2529 } } // namespace v8::internal |
| 2530 | 2530 |
| 2531 #endif // V8_TARGET_ARCH_IA32 | 2531 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |