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

Side by Side Diff: src/objects.cc

Issue 530343005: Clean up code stubs and ensure distinct major keys. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/allocation-site-scopes.h" 8 #include "src/allocation-site-scopes.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/arguments.h" 10 #include "src/arguments.h"
(...skipping 10884 matching lines...) Expand 10 before | Expand all | Expand 10 after
10895 os << "major_key = " << (n == NULL ? "null" : n) << "\n"; 10895 os << "major_key = " << (n == NULL ? "null" : n) << "\n";
10896 } 10896 }
10897 if (is_inline_cache_stub()) { 10897 if (is_inline_cache_stub()) {
10898 os << "ic_state = " << ICState2String(ic_state()) << "\n"; 10898 os << "ic_state = " << ICState2String(ic_state()) << "\n";
10899 PrintExtraICState(os, kind(), extra_ic_state()); 10899 PrintExtraICState(os, kind(), extra_ic_state());
10900 if (ic_state() == MONOMORPHIC) { 10900 if (ic_state() == MONOMORPHIC) {
10901 os << "type = " << StubType2String(type()) << "\n"; 10901 os << "type = " << StubType2String(type()) << "\n";
10902 } 10902 }
10903 if (is_compare_ic_stub()) { 10903 if (is_compare_ic_stub()) {
10904 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); 10904 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC);
10905 ICCompareStub stub(stub_key()); 10905 CompareICStub stub(stub_key());
10906 os << "compare_state = " << CompareIC::GetStateName(stub.left()) << "*" 10906 os << "compare_state = " << CompareIC::GetStateName(stub.left()) << "*"
10907 << CompareIC::GetStateName(stub.right()) << " -> " 10907 << CompareIC::GetStateName(stub.right()) << " -> "
10908 << CompareIC::GetStateName(stub.state()) << "\n"; 10908 << CompareIC::GetStateName(stub.state()) << "\n";
10909 os << "compare_operation = " << Token::Name(stub.op()) << "\n"; 10909 os << "compare_operation = " << Token::Name(stub.op()) << "\n";
10910 } 10910 }
10911 } 10911 }
10912 if ((name != NULL) && (name[0] != '\0')) { 10912 if ((name != NULL) && (name[0] != '\0')) {
10913 os << "name = " << name << "\n"; 10913 os << "name = " << name << "\n";
10914 } 10914 }
10915 if (kind() == OPTIMIZED_FUNCTION) { 10915 if (kind() == OPTIMIZED_FUNCTION) {
(...skipping 5502 matching lines...) Expand 10 before | Expand all | Expand 10 after
16418 #define ERROR_MESSAGES_TEXTS(C, T) T, 16418 #define ERROR_MESSAGES_TEXTS(C, T) T,
16419 static const char* error_messages_[] = { 16419 static const char* error_messages_[] = {
16420 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16420 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16421 }; 16421 };
16422 #undef ERROR_MESSAGES_TEXTS 16422 #undef ERROR_MESSAGES_TEXTS
16423 return error_messages_[reason]; 16423 return error_messages_[reason];
16424 } 16424 }
16425 16425
16426 16426
16427 } } // namespace v8::internal 16427 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698