| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // write barrier because the allocated object is in new space. | 87 // write barrier because the allocated object is in new space. |
| 88 Factory* factory = masm->isolate()->factory(); | 88 Factory* factory = masm->isolate()->factory(); |
| 89 __ mov(ebx, Immediate(factory->empty_fixed_array())); | 89 __ mov(ebx, Immediate(factory->empty_fixed_array())); |
| 90 __ mov(FieldOperand(eax, JSObject::kPropertiesOffset), ebx); | 90 __ mov(FieldOperand(eax, JSObject::kPropertiesOffset), ebx); |
| 91 __ mov(FieldOperand(eax, JSObject::kElementsOffset), ebx); | 91 __ mov(FieldOperand(eax, JSObject::kElementsOffset), ebx); |
| 92 __ mov(FieldOperand(eax, JSFunction::kPrototypeOrInitialMapOffset), | 92 __ mov(FieldOperand(eax, JSFunction::kPrototypeOrInitialMapOffset), |
| 93 Immediate(factory->the_hole_value())); | 93 Immediate(factory->the_hole_value())); |
| 94 __ mov(FieldOperand(eax, JSFunction::kSharedFunctionInfoOffset), edx); | 94 __ mov(FieldOperand(eax, JSFunction::kSharedFunctionInfoOffset), edx); |
| 95 __ mov(FieldOperand(eax, JSFunction::kContextOffset), esi); | 95 __ mov(FieldOperand(eax, JSFunction::kContextOffset), esi); |
| 96 __ mov(FieldOperand(eax, JSFunction::kLiteralsOffset), ebx); | 96 __ mov(FieldOperand(eax, JSFunction::kLiteralsOffset), ebx); |
| 97 __ mov(FieldOperand(eax, JSFunction::kProfilerTicksOffset), |
| 98 Immediate(Smi::FromInt(0))); |
| 97 __ mov(FieldOperand(eax, JSFunction::kNextFunctionLinkOffset), | 99 __ mov(FieldOperand(eax, JSFunction::kNextFunctionLinkOffset), |
| 98 Immediate(factory->undefined_value())); | 100 Immediate(factory->undefined_value())); |
| 99 | 101 |
| 100 // Initialize the code pointer in the function to be the one | 102 // Initialize the code pointer in the function to be the one |
| 101 // found in the shared function info object. | 103 // found in the shared function info object. |
| 102 __ mov(edx, FieldOperand(edx, SharedFunctionInfo::kCodeOffset)); | 104 __ mov(edx, FieldOperand(edx, SharedFunctionInfo::kCodeOffset)); |
| 103 __ lea(edx, FieldOperand(edx, Code::kHeaderSize)); | 105 __ lea(edx, FieldOperand(edx, Code::kHeaderSize)); |
| 104 __ mov(FieldOperand(eax, JSFunction::kCodeEntryOffset), edx); | 106 __ mov(FieldOperand(eax, JSFunction::kCodeEntryOffset), edx); |
| 105 | 107 |
| 106 // Return and remove the on-stack parameter. | 108 // Return and remove the on-stack parameter. |
| (...skipping 7183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7290 false); | 7292 false); |
| 7291 __ pop(edx); | 7293 __ pop(edx); |
| 7292 __ ret(0); | 7294 __ ret(0); |
| 7293 } | 7295 } |
| 7294 | 7296 |
| 7295 #undef __ | 7297 #undef __ |
| 7296 | 7298 |
| 7297 } } // namespace v8::internal | 7299 } } // namespace v8::internal |
| 7298 | 7300 |
| 7299 #endif // V8_TARGET_ARCH_IA32 | 7301 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |