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

Side by Side Diff: src/compiler.cc

Issue 12385014: Hydrogen stubs for array constructors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: We still generated the arrays with feature flag off. Fixed. Created 7 years, 8 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/heap.h » ('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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 set_bailout_reason("unknown"); 118 set_bailout_reason("unknown");
119 } 119 }
120 120
121 121
122 CompilationInfo::~CompilationInfo() { 122 CompilationInfo::~CompilationInfo() {
123 delete deferred_handles_; 123 delete deferred_handles_;
124 } 124 }
125 125
126 126
127 int CompilationInfo::num_parameters() const { 127 int CompilationInfo::num_parameters() const {
128 if (IsStub()) { 128 ASSERT(!IsStub());
129 return 0; 129 return scope()->num_parameters();
130 } else {
131 return scope()->num_parameters();
132 }
133 } 130 }
134 131
135 132
136 int CompilationInfo::num_heap_slots() const { 133 int CompilationInfo::num_heap_slots() const {
137 if (IsStub()) { 134 if (IsStub()) {
138 return 0; 135 return 0;
139 } else { 136 } else {
140 return scope()->num_heap_slots(); 137 return scope()->num_heap_slots();
141 } 138 }
142 } 139 }
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 } 1168 }
1172 } 1169 }
1173 1170
1174 GDBJIT(AddCode(Handle<String>(shared->DebugName()), 1171 GDBJIT(AddCode(Handle<String>(shared->DebugName()),
1175 Handle<Script>(info->script()), 1172 Handle<Script>(info->script()),
1176 Handle<Code>(info->code()), 1173 Handle<Code>(info->code()),
1177 info)); 1174 info));
1178 } 1175 }
1179 1176
1180 } } // namespace v8::internal 1177 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698