| 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 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 Add<HStoreNamedField>(js_function, HObjectAccess::ForElementsPointer(), | 1234 Add<HStoreNamedField>(js_function, HObjectAccess::ForElementsPointer(), |
| 1235 empty_fixed_array); | 1235 empty_fixed_array); |
| 1236 Add<HStoreNamedField>(js_function, HObjectAccess::ForLiteralsPointer(), | 1236 Add<HStoreNamedField>(js_function, HObjectAccess::ForLiteralsPointer(), |
| 1237 empty_fixed_array); | 1237 empty_fixed_array); |
| 1238 Add<HStoreNamedField>(js_function, HObjectAccess::ForPrototypeOrInitialMap(), | 1238 Add<HStoreNamedField>(js_function, HObjectAccess::ForPrototypeOrInitialMap(), |
| 1239 graph()->GetConstantHole()); | 1239 graph()->GetConstantHole()); |
| 1240 Add<HStoreNamedField>(js_function, | 1240 Add<HStoreNamedField>(js_function, |
| 1241 HObjectAccess::ForSharedFunctionInfoPointer(), | 1241 HObjectAccess::ForSharedFunctionInfoPointer(), |
| 1242 shared_info); | 1242 shared_info); |
| 1243 Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(), | 1243 Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(), |
| 1244 shared_info); | |
| 1245 Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(), | |
| 1246 context()); | 1244 context()); |
| 1247 | 1245 |
| 1248 // Initialize the code pointer in the function to be the one | 1246 // Initialize the code pointer in the function to be the one |
| 1249 // found in the shared function info object. | 1247 // found in the shared function info object. |
| 1250 // But first check if there is an optimized version for our context. | 1248 // But first check if there is an optimized version for our context. |
| 1251 if (FLAG_cache_optimized_code) { | 1249 if (FLAG_cache_optimized_code) { |
| 1252 BuildInstallFromOptimizedCodeMap(js_function, shared_info, native_context); | 1250 BuildInstallFromOptimizedCodeMap(js_function, shared_info, native_context); |
| 1253 } else { | 1251 } else { |
| 1254 BuildInstallCode(js_function, shared_info); | 1252 BuildInstallCode(js_function, shared_info); |
| 1255 } | 1253 } |
| 1256 | 1254 |
| 1257 return js_function; | 1255 return js_function; |
| 1258 } | 1256 } |
| 1259 | 1257 |
| 1260 | 1258 |
| 1261 Handle<Code> FastNewClosureStub::GenerateCode(Isolate* isolate) { | 1259 Handle<Code> FastNewClosureStub::GenerateCode(Isolate* isolate) { |
| 1262 return DoGenerateCode(isolate, this); | 1260 return DoGenerateCode(isolate, this); |
| 1263 } | 1261 } |
| 1264 | 1262 |
| 1265 | 1263 |
| 1266 } } // namespace v8::internal | 1264 } } // namespace v8::internal |
| OLD | NEW |