| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/field-index.h" | 8 #include "src/field-index.h" |
| 9 #include "src/hydrogen.h" | 9 #include "src/hydrogen.h" |
| 10 #include "src/lithium.h" | 10 #include "src/lithium.h" |
| (...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 empty_fixed_array); | 1297 empty_fixed_array); |
| 1298 Add<HStoreNamedField>(js_function, HObjectAccess::ForLiteralsPointer(), | 1298 Add<HStoreNamedField>(js_function, HObjectAccess::ForLiteralsPointer(), |
| 1299 empty_fixed_array); | 1299 empty_fixed_array); |
| 1300 Add<HStoreNamedField>(js_function, HObjectAccess::ForPrototypeOrInitialMap(), | 1300 Add<HStoreNamedField>(js_function, HObjectAccess::ForPrototypeOrInitialMap(), |
| 1301 graph()->GetConstantHole()); | 1301 graph()->GetConstantHole()); |
| 1302 Add<HStoreNamedField>(js_function, | 1302 Add<HStoreNamedField>(js_function, |
| 1303 HObjectAccess::ForSharedFunctionInfoPointer(), | 1303 HObjectAccess::ForSharedFunctionInfoPointer(), |
| 1304 shared_info); | 1304 shared_info); |
| 1305 Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(), | 1305 Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(), |
| 1306 context()); | 1306 context()); |
| 1307 Add<HStoreNamedField>(js_function, |
| 1308 HObjectAccess::ForHomeObject(), |
| 1309 Add<HConstant>(factory->undefined_value())); |
| 1307 | 1310 |
| 1308 // Initialize the code pointer in the function to be the one | 1311 // Initialize the code pointer in the function to be the one |
| 1309 // found in the shared function info object. | 1312 // found in the shared function info object. |
| 1310 // But first check if there is an optimized version for our context. | 1313 // But first check if there is an optimized version for our context. |
| 1311 if (FLAG_cache_optimized_code) { | 1314 if (FLAG_cache_optimized_code) { |
| 1312 BuildInstallFromOptimizedCodeMap(js_function, shared_info, native_context); | 1315 BuildInstallFromOptimizedCodeMap(js_function, shared_info, native_context); |
| 1313 } else { | 1316 } else { |
| 1314 BuildInstallCode(js_function, shared_info); | 1317 BuildInstallCode(js_function, shared_info); |
| 1315 } | 1318 } |
| 1316 | 1319 |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1717 return Pop(); | 1720 return Pop(); |
| 1718 } | 1721 } |
| 1719 | 1722 |
| 1720 | 1723 |
| 1721 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 1724 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
| 1722 return DoGenerateCode(this); | 1725 return DoGenerateCode(this); |
| 1723 } | 1726 } |
| 1724 | 1727 |
| 1725 | 1728 |
| 1726 } } // namespace v8::internal | 1729 } } // namespace v8::internal |
| OLD | NEW |