| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 384     __ MultiPushReversed(a0.bit() | a1.bit()); | 384     __ MultiPushReversed(a0.bit() | a1.bit()); | 
| 385 | 385 | 
| 386     // Use t7 to hold undefined, which is used in several places below. | 386     // Use t7 to hold undefined, which is used in several places below. | 
| 387     __ LoadRoot(t7, Heap::kUndefinedValueRootIndex); | 387     __ LoadRoot(t7, Heap::kUndefinedValueRootIndex); | 
| 388 | 388 | 
| 389     Label rt_call, allocated; | 389     Label rt_call, allocated; | 
| 390     // Try to allocate the object without transitioning into C code. If any of | 390     // Try to allocate the object without transitioning into C code. If any of | 
| 391     // the preconditions is not met, the code bails out to the runtime call. | 391     // the preconditions is not met, the code bails out to the runtime call. | 
| 392     if (FLAG_inline_new) { | 392     if (FLAG_inline_new) { | 
| 393       Label undo_allocation; | 393       Label undo_allocation; | 
| 394 #ifdef ENABLE_DEBUGGER_SUPPORT |  | 
| 395       ExternalReference debug_step_in_fp = | 394       ExternalReference debug_step_in_fp = | 
| 396           ExternalReference::debug_step_in_fp_address(isolate); | 395           ExternalReference::debug_step_in_fp_address(isolate); | 
| 397       __ li(a2, Operand(debug_step_in_fp)); | 396       __ li(a2, Operand(debug_step_in_fp)); | 
| 398       __ lw(a2, MemOperand(a2)); | 397       __ lw(a2, MemOperand(a2)); | 
| 399       __ Branch(&rt_call, ne, a2, Operand(zero_reg)); | 398       __ Branch(&rt_call, ne, a2, Operand(zero_reg)); | 
| 400 #endif |  | 
| 401 | 399 | 
| 402       // Load the initial map and verify that it is in fact a map. | 400       // Load the initial map and verify that it is in fact a map. | 
| 403       // a1: constructor function | 401       // a1: constructor function | 
| 404       __ lw(a2, FieldMemOperand(a1, JSFunction::kPrototypeOrInitialMapOffset)); | 402       __ lw(a2, FieldMemOperand(a1, JSFunction::kPrototypeOrInitialMapOffset)); | 
| 405       __ JumpIfSmi(a2, &rt_call); | 403       __ JumpIfSmi(a2, &rt_call); | 
| 406       __ GetObjectType(a2, a3, t4); | 404       __ GetObjectType(a2, a3, t4); | 
| 407       __ Branch(&rt_call, ne, t4, Operand(MAP_TYPE)); | 405       __ Branch(&rt_call, ne, t4, Operand(MAP_TYPE)); | 
| 408 | 406 | 
| 409       // Check that the constructor is not constructing a JSFunction (see | 407       // Check that the constructor is not constructing a JSFunction (see | 
| 410       // comments in Runtime_NewObject in runtime.cc). In which case the | 408       // comments in Runtime_NewObject in runtime.cc). In which case the | 
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1595     __ break_(0xCC); | 1593     __ break_(0xCC); | 
| 1596   } | 1594   } | 
| 1597 } | 1595 } | 
| 1598 | 1596 | 
| 1599 | 1597 | 
| 1600 #undef __ | 1598 #undef __ | 
| 1601 | 1599 | 
| 1602 } }  // namespace v8::internal | 1600 } }  // namespace v8::internal | 
| 1603 | 1601 | 
| 1604 #endif  // V8_TARGET_ARCH_MIPS | 1602 #endif  // V8_TARGET_ARCH_MIPS | 
| OLD | NEW | 
|---|