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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 618213002: Reland "Use symbols instead of hidden properties for i18n markers." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 2 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/heap/heap.cc ('k') | src/mips/code-stubs-mips.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 // 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/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/double.h" 8 #include "src/double.h"
9 #include "src/factory.h" 9 #include "src/factory.h"
10 #include "src/hydrogen-infer-representation.h" 10 #include "src/hydrogen-infer-representation.h"
(...skipping 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after
2866 IMMORTAL_IMMOVABLE_ROOT_LIST(IMMORTAL_IMMOVABLE_ROOT) 2866 IMMORTAL_IMMOVABLE_ROOT_LIST(IMMORTAL_IMMOVABLE_ROOT)
2867 #undef IMMORTAL_IMMOVABLE_ROOT 2867 #undef IMMORTAL_IMMOVABLE_ROOT
2868 #define INTERNALIZED_STRING(name, value) \ 2868 #define INTERNALIZED_STRING(name, value) \
2869 object_.IsKnownGlobal(heap->name()) || 2869 object_.IsKnownGlobal(heap->name()) ||
2870 INTERNALIZED_STRING_LIST(INTERNALIZED_STRING) 2870 INTERNALIZED_STRING_LIST(INTERNALIZED_STRING)
2871 #undef INTERNALIZED_STRING 2871 #undef INTERNALIZED_STRING
2872 #define STRING_TYPE(NAME, size, name, Name) \ 2872 #define STRING_TYPE(NAME, size, name, Name) \
2873 object_.IsKnownGlobal(heap->name##_map()) || 2873 object_.IsKnownGlobal(heap->name##_map()) ||
2874 STRING_TYPE_LIST(STRING_TYPE) 2874 STRING_TYPE_LIST(STRING_TYPE)
2875 #undef STRING_TYPE 2875 #undef STRING_TYPE
2876 #define SYMBOL(name) object_.IsKnownGlobal(heap->name()) ||
2877 PRIVATE_SYMBOL_LIST(SYMBOL)
2878 #undef SYMBOL
2876 false; 2879 false;
2877 } 2880 }
2878 2881
2879 2882
2880 bool HConstant::EmitAtUses() { 2883 bool HConstant::EmitAtUses() {
2881 DCHECK(IsLinked()); 2884 DCHECK(IsLinked());
2882 if (block()->graph()->has_osr() && 2885 if (block()->graph()->has_osr() &&
2883 block()->graph()->IsStandardConstant(this)) { 2886 block()->graph()->IsStandardConstant(this)) {
2884 // TODO(titzer): this seems like a hack that should be fixed by custom OSR. 2887 // TODO(titzer): this seems like a hack that should be fixed by custom OSR.
2885 return true; 2888 return true;
(...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after
4801 break; 4804 break;
4802 case HObjectAccess::kExternalMemory: 4805 case HObjectAccess::kExternalMemory:
4803 os << "[external-memory]"; 4806 os << "[external-memory]";
4804 break; 4807 break;
4805 } 4808 }
4806 4809
4807 return os << "@" << access.offset(); 4810 return os << "@" << access.offset();
4808 } 4811 }
4809 4812
4810 } } // namespace v8::internal 4813 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698