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

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

Issue 108443004: Ensure that Code objects' kind specific flags are initialized properly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix nit Created 7 years 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.h ('k') | src/heap.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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 return Handle<Code>(code, isolate); 190 return Handle<Code>(code, isolate);
191 } 191 }
192 192
193 193
194 const char* CodeStub::MajorName(CodeStub::Major major_key, 194 const char* CodeStub::MajorName(CodeStub::Major major_key,
195 bool allow_unknown_keys) { 195 bool allow_unknown_keys) {
196 switch (major_key) { 196 switch (major_key) {
197 #define DEF_CASE(name) case name: return #name "Stub"; 197 #define DEF_CASE(name) case name: return #name "Stub";
198 CODE_STUB_LIST(DEF_CASE) 198 CODE_STUB_LIST(DEF_CASE)
199 #undef DEF_CASE 199 #undef DEF_CASE
200 case UninitializedMajorKey: return "<UninitializedMajorKey>Stub";
200 default: 201 default:
201 if (!allow_unknown_keys) { 202 if (!allow_unknown_keys) {
202 UNREACHABLE(); 203 UNREACHABLE();
203 } 204 }
204 return NULL; 205 return NULL;
205 } 206 }
206 } 207 }
207 208
208 209
209 void CodeStub::PrintBaseName(StringStream* stream) { 210 void CodeStub::PrintBaseName(StringStream* stream) {
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 InstallDescriptor(isolate, &stub3); 763 InstallDescriptor(isolate, &stub3);
763 } 764 }
764 765
765 InternalArrayConstructorStub::InternalArrayConstructorStub( 766 InternalArrayConstructorStub::InternalArrayConstructorStub(
766 Isolate* isolate) { 767 Isolate* isolate) {
767 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 768 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
768 } 769 }
769 770
770 771
771 } } // namespace v8::internal 772 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698