Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 80953002: Merged r17432, r17526, r17545, r17620, r17747 into 3.21 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.21
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 Add<HStoreNamedField>(js_function, HObjectAccess::ForElementsPointer(), 1074 Add<HStoreNamedField>(js_function, HObjectAccess::ForElementsPointer(),
1075 empty_fixed_array); 1075 empty_fixed_array);
1076 Add<HStoreNamedField>(js_function, HObjectAccess::ForLiteralsPointer(), 1076 Add<HStoreNamedField>(js_function, HObjectAccess::ForLiteralsPointer(),
1077 empty_fixed_array); 1077 empty_fixed_array);
1078 Add<HStoreNamedField>(js_function, HObjectAccess::ForPrototypeOrInitialMap(), 1078 Add<HStoreNamedField>(js_function, HObjectAccess::ForPrototypeOrInitialMap(),
1079 graph()->GetConstantHole()); 1079 graph()->GetConstantHole());
1080 Add<HStoreNamedField>(js_function, 1080 Add<HStoreNamedField>(js_function,
1081 HObjectAccess::ForSharedFunctionInfoPointer(), 1081 HObjectAccess::ForSharedFunctionInfoPointer(),
1082 shared_info); 1082 shared_info);
1083 Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(), 1083 Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(),
1084 shared_info);
1085 Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(),
1086 context()); 1084 context());
1087 1085
1088 // Initialize the code pointer in the function to be the one 1086 // Initialize the code pointer in the function to be the one
1089 // found in the shared function info object. 1087 // found in the shared function info object.
1090 // But first check if there is an optimized version for our context. 1088 // But first check if there is an optimized version for our context.
1091 if (FLAG_cache_optimized_code) { 1089 if (FLAG_cache_optimized_code) {
1092 BuildInstallFromOptimizedCodeMap(js_function, shared_info, native_context); 1090 BuildInstallFromOptimizedCodeMap(js_function, shared_info, native_context);
1093 } else { 1091 } else {
1094 BuildInstallCode(js_function, shared_info); 1092 BuildInstallCode(js_function, shared_info);
1095 } 1093 }
1096 1094
1097 return js_function; 1095 return js_function;
1098 } 1096 }
1099 1097
1100 1098
1101 Handle<Code> FastNewClosureStub::GenerateCode(Isolate* isolate) { 1099 Handle<Code> FastNewClosureStub::GenerateCode(Isolate* isolate) {
1102 return DoGenerateCode(isolate, this); 1100 return DoGenerateCode(isolate, this);
1103 } 1101 }
1104 1102
1105 1103
1106 } } // namespace v8::internal 1104 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698