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

Side by Side Diff: src/objects.cc

Issue 529773002: Minor-key-ify four stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix some compilation issues 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
« no previous file with comments | « src/ic/ic.cc ('k') | src/x64/code-stubs-x64.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 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 10883 matching lines...) Expand 10 before | Expand all | Expand 10 after
10894 os << "major_key = " << (n == NULL ? "null" : n) << "\n"; 10894 os << "major_key = " << (n == NULL ? "null" : n) << "\n";
10895 } 10895 }
10896 if (is_inline_cache_stub()) { 10896 if (is_inline_cache_stub()) {
10897 os << "ic_state = " << ICState2String(ic_state()) << "\n"; 10897 os << "ic_state = " << ICState2String(ic_state()) << "\n";
10898 PrintExtraICState(os, kind(), extra_ic_state()); 10898 PrintExtraICState(os, kind(), extra_ic_state());
10899 if (ic_state() == MONOMORPHIC) { 10899 if (ic_state() == MONOMORPHIC) {
10900 os << "type = " << StubType2String(type()) << "\n"; 10900 os << "type = " << StubType2String(type()) << "\n";
10901 } 10901 }
10902 if (is_compare_ic_stub()) { 10902 if (is_compare_ic_stub()) {
10903 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); 10903 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC);
10904 CompareIC::State left_state, right_state, handler_state; 10904 ICCompareStub stub(stub_key());
10905 Token::Value op; 10905 os << "compare_state = " << CompareIC::GetStateName(stub.left()) << "*"
10906 ICCompareStub::DecodeKey(stub_key(), &left_state, &right_state, 10906 << CompareIC::GetStateName(stub.right()) << " -> "
10907 &handler_state, &op); 10907 << CompareIC::GetStateName(stub.state()) << "\n";
10908 os << "compare_state = " << CompareIC::GetStateName(left_state) << "*" 10908 os << "compare_operation = " << Token::Name(stub.op()) << "\n";
10909 << CompareIC::GetStateName(right_state) << " -> "
10910 << CompareIC::GetStateName(handler_state) << "\n";
10911 os << "compare_operation = " << Token::Name(op) << "\n";
10912 } 10909 }
10913 } 10910 }
10914 if ((name != NULL) && (name[0] != '\0')) { 10911 if ((name != NULL) && (name[0] != '\0')) {
10915 os << "name = " << name << "\n"; 10912 os << "name = " << name << "\n";
10916 } 10913 }
10917 if (kind() == OPTIMIZED_FUNCTION) { 10914 if (kind() == OPTIMIZED_FUNCTION) {
10918 os << "stack_slots = " << stack_slots() << "\n"; 10915 os << "stack_slots = " << stack_slots() << "\n";
10919 } 10916 }
10920 10917
10921 os << "Instructions (size = " << instruction_size() << ")\n"; 10918 os << "Instructions (size = " << instruction_size() << ")\n";
(...skipping 5498 matching lines...) Expand 10 before | Expand all | Expand 10 after
16420 #define ERROR_MESSAGES_TEXTS(C, T) T, 16417 #define ERROR_MESSAGES_TEXTS(C, T) T,
16421 static const char* error_messages_[] = { 16418 static const char* error_messages_[] = {
16422 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16419 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16423 }; 16420 };
16424 #undef ERROR_MESSAGES_TEXTS 16421 #undef ERROR_MESSAGES_TEXTS
16425 return error_messages_[reason]; 16422 return error_messages_[reason];
16426 } 16423 }
16427 16424
16428 16425
16429 } } // namespace v8::internal 16426 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698