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

Side by Side Diff: src/compiler.cc

Issue 14847004: Turn the load field code stub into a hydrogen code stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 7 months 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 | « src/code-stubs-hydrogen.cc ('k') | src/ia32/code-stubs-ia32.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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return scope()->num_heap_slots(); 137 return scope()->num_heap_slots();
138 } 138 }
139 } 139 }
140 140
141 141
142 Code::Flags CompilationInfo::flags() const { 142 Code::Flags CompilationInfo::flags() const {
143 if (IsStub()) { 143 if (IsStub()) {
144 return Code::ComputeFlags(code_stub()->GetCodeKind(), 144 return Code::ComputeFlags(code_stub()->GetCodeKind(),
145 code_stub()->GetICState(), 145 code_stub()->GetICState(),
146 code_stub()->GetExtraICState(), 146 code_stub()->GetExtraICState(),
147 Code::NORMAL, -1); 147 code_stub()->GetStubType(),
148 code_stub()->GetStubFlags());
148 } else { 149 } else {
149 return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); 150 return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION);
150 } 151 }
151 } 152 }
152 153
153 154
154 // Disable optimization for the rest of the compilation pipeline. 155 // Disable optimization for the rest of the compilation pipeline.
155 void CompilationInfo::DisableOptimization() { 156 void CompilationInfo::DisableOptimization() {
156 bool is_optimizable_closure = 157 bool is_optimizable_closure =
157 FLAG_optimize_closures && 158 FLAG_optimize_closures &&
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 } 1168 }
1168 } 1169 }
1169 1170
1170 GDBJIT(AddCode(Handle<String>(shared->DebugName()), 1171 GDBJIT(AddCode(Handle<String>(shared->DebugName()),
1171 Handle<Script>(info->script()), 1172 Handle<Script>(info->script()),
1172 Handle<Code>(info->code()), 1173 Handle<Code>(info->code()),
1173 info)); 1174 info));
1174 } 1175 }
1175 1176
1176 } } // namespace v8::internal 1177 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698