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

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

Issue 21014003: Optionally use 31-bits SMI value for 64-bit system (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed danno's comments Created 7 years, 4 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 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 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2398 is_not_in_new_space_(true), 2398 is_not_in_new_space_(true),
2399 is_cell_(false), 2399 is_cell_(false),
2400 boolean_value_(true), 2400 boolean_value_(true),
2401 external_reference_value_(reference) { 2401 external_reference_value_(reference) {
2402 Initialize(Representation::External()); 2402 Initialize(Representation::External());
2403 } 2403 }
2404 2404
2405 2405
2406 void HConstant::Initialize(Representation r) { 2406 void HConstant::Initialize(Representation r) {
2407 if (r.IsNone()) { 2407 if (r.IsNone()) {
2408 if (has_smi_value_ && kSmiValueSize == 31) { 2408 if (has_smi_value_ && SmiValuesAre31Bits()) {
2409 r = Representation::Smi(); 2409 r = Representation::Smi();
2410 } else if (has_int32_value_) { 2410 } else if (has_int32_value_) {
2411 r = Representation::Integer32(); 2411 r = Representation::Integer32();
2412 } else if (has_double_value_) { 2412 } else if (has_double_value_) {
2413 r = Representation::Double(); 2413 r = Representation::Double();
2414 } else if (has_external_reference_value_) { 2414 } else if (has_external_reference_value_) {
2415 r = Representation::External(); 2415 r = Representation::External();
2416 } else { 2416 } else {
2417 r = Representation::Tagged(); 2417 r = Representation::Tagged();
2418 } 2418 }
(...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after
4117 break; 4117 break;
4118 case kExternalMemory: 4118 case kExternalMemory:
4119 stream->Add("[external-memory]"); 4119 stream->Add("[external-memory]");
4120 break; 4120 break;
4121 } 4121 }
4122 4122
4123 stream->Add("@%d", offset()); 4123 stream->Add("@%d", offset());
4124 } 4124 }
4125 4125
4126 } } // namespace v8::internal 4126 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ic.cc » ('j') | src/x64/full-codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698