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

Side by Side Diff: src/objects.cc

Issue 10778029: Allow uint32 value on optimized frames if they are consumed by safe operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: arm and x64 ports Created 8 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 8311 matching lines...) Expand 10 before | Expand all | Expand 10 after
8322 PrintF(out, "{input=%s}", converter.NameOfCPURegister(reg_code)); 8322 PrintF(out, "{input=%s}", converter.NameOfCPURegister(reg_code));
8323 break; 8323 break;
8324 } 8324 }
8325 8325
8326 case Translation::INT32_REGISTER: { 8326 case Translation::INT32_REGISTER: {
8327 int reg_code = iterator.Next(); 8327 int reg_code = iterator.Next();
8328 PrintF(out, "{input=%s}", converter.NameOfCPURegister(reg_code)); 8328 PrintF(out, "{input=%s}", converter.NameOfCPURegister(reg_code));
8329 break; 8329 break;
8330 } 8330 }
8331 8331
8332 case Translation::UINT32_REGISTER: {
8333 int reg_code = iterator.Next();
8334 PrintF(out,
8335 "{input=%s (unsigned)}",
8336 converter.NameOfCPURegister(reg_code));
8337 break;
8338 }
8339
8332 case Translation::DOUBLE_REGISTER: { 8340 case Translation::DOUBLE_REGISTER: {
8333 int reg_code = iterator.Next(); 8341 int reg_code = iterator.Next();
8334 PrintF(out, "{input=%s}", 8342 PrintF(out, "{input=%s}",
8335 DoubleRegister::AllocationIndexToString(reg_code)); 8343 DoubleRegister::AllocationIndexToString(reg_code));
8336 break; 8344 break;
8337 } 8345 }
8338 8346
8339 case Translation::STACK_SLOT: { 8347 case Translation::STACK_SLOT: {
8340 int input_slot_index = iterator.Next(); 8348 int input_slot_index = iterator.Next();
8341 PrintF(out, "{input=%d}", input_slot_index); 8349 PrintF(out, "{input=%d}", input_slot_index);
8342 break; 8350 break;
8343 } 8351 }
8344 8352
8345 case Translation::INT32_STACK_SLOT: { 8353 case Translation::INT32_STACK_SLOT: {
8346 int input_slot_index = iterator.Next(); 8354 int input_slot_index = iterator.Next();
8347 PrintF(out, "{input=%d}", input_slot_index); 8355 PrintF(out, "{input=%d}", input_slot_index);
8348 break; 8356 break;
8349 } 8357 }
8350 8358
8359 case Translation::UINT32_STACK_SLOT: {
8360 int input_slot_index = iterator.Next();
8361 PrintF(out, "{input=%d (unsigned)}", input_slot_index);
8362 break;
8363 }
8364
8351 case Translation::DOUBLE_STACK_SLOT: { 8365 case Translation::DOUBLE_STACK_SLOT: {
8352 int input_slot_index = iterator.Next(); 8366 int input_slot_index = iterator.Next();
8353 PrintF(out, "{input=%d}", input_slot_index); 8367 PrintF(out, "{input=%d}", input_slot_index);
8354 break; 8368 break;
8355 } 8369 }
8356 8370
8357 case Translation::LITERAL: { 8371 case Translation::LITERAL: {
8358 unsigned literal_index = iterator.Next(); 8372 unsigned literal_index = iterator.Next();
8359 PrintF(out, "{literal_id=%u}", literal_index); 8373 PrintF(out, "{literal_id=%u}", literal_index);
8360 break; 8374 break;
(...skipping 4794 matching lines...) Expand 10 before | Expand all | Expand 10 after
13155 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 13169 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
13156 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 13170 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
13157 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 13171 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
13158 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 13172 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
13159 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 13173 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
13160 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 13174 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
13161 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 13175 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
13162 } 13176 }
13163 13177
13164 } } // namespace v8::internal 13178 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698