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

Side by Side Diff: src/objects.cc

Issue 12084062: Merged r13361, r13481 into 3.15 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.15
Patch Set: Created 7 years, 10 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/objects.h ('k') | src/objects-inl.h » ('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 // 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 8544 matching lines...) Expand 10 before | Expand all | Expand 10 after
8555 Code* code = this->code(); 8555 Code* code = this->code();
8556 if (IsCodeEquivalent(code, recompiled)) { 8556 if (IsCodeEquivalent(code, recompiled)) {
8557 // Copy the deoptimization data from the recompiled code. 8557 // Copy the deoptimization data from the recompiled code.
8558 code->set_deoptimization_data(recompiled->deoptimization_data()); 8558 code->set_deoptimization_data(recompiled->deoptimization_data());
8559 code->set_has_deoptimization_support(true); 8559 code->set_has_deoptimization_support(true);
8560 } else { 8560 } else {
8561 // TODO(3025757): In case the recompiled isn't equivalent to the 8561 // TODO(3025757): In case the recompiled isn't equivalent to the
8562 // old code, we have to replace it. We should try to avoid this 8562 // old code, we have to replace it. We should try to avoid this
8563 // altogether because it flushes valuable type feedback by 8563 // altogether because it flushes valuable type feedback by
8564 // effectively resetting all IC state. 8564 // effectively resetting all IC state.
8565 set_code(recompiled); 8565 ReplaceCode(recompiled);
8566 } 8566 }
8567 ASSERT(has_deoptimization_support()); 8567 ASSERT(has_deoptimization_support());
8568 } 8568 }
8569 8569
8570 8570
8571 void SharedFunctionInfo::DisableOptimization(const char* reason) { 8571 void SharedFunctionInfo::DisableOptimization(const char* reason) {
8572 // Disable optimization for the shared function info and mark the 8572 // Disable optimization for the shared function info and mark the
8573 // code as non-optimizable. The marker on the shared function info 8573 // code as non-optimizable. The marker on the shared function info
8574 // is there because we flush non-optimized code thereby loosing the 8574 // is there because we flush non-optimized code thereby loosing the
8575 // non-optimizable information for the code. When the code is 8575 // non-optimizable information for the code. When the code is
(...skipping 5453 matching lines...) Expand 10 before | Expand all | Expand 10 after
14029 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 14029 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
14030 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 14030 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
14031 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 14031 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
14032 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 14032 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
14033 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 14033 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
14034 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 14034 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
14035 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 14035 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
14036 } 14036 }
14037 14037
14038 } } // namespace v8::internal 14038 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698