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

Side by Side Diff: src/ic.cc

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 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 // 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/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 Heap* heap = isolate->heap(); 441 Heap* heap = isolate->heap();
442 Object* undefined = heap->undefined_value(); 442 Object* undefined = heap->undefined_value();
443 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); 443 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
444 for (RelocIterator it(stub, mode_mask); !it.done(); it.next()) { 444 for (RelocIterator it(stub, mode_mask); !it.done(); it.next()) {
445 RelocInfo::Mode mode = it.rinfo()->rmode(); 445 RelocInfo::Mode mode = it.rinfo()->rmode();
446 if (mode == RelocInfo::EMBEDDED_OBJECT && 446 if (mode == RelocInfo::EMBEDDED_OBJECT &&
447 it.rinfo()->target_object()->IsMap()) { 447 it.rinfo()->target_object()->IsMap()) {
448 it.rinfo()->set_target_object(undefined, SKIP_WRITE_BARRIER); 448 it.rinfo()->set_target_object(undefined, SKIP_WRITE_BARRIER);
449 } 449 }
450 } 450 }
451 CPU::FlushICache(stub->instruction_start(), stub->instruction_size()); 451 CpuFeatures::FlushICache(stub->instruction_start(), stub->instruction_size());
452 } 452 }
453 453
454 454
455 void IC::Clear(Isolate* isolate, Address address, 455 void IC::Clear(Isolate* isolate, Address address,
456 ConstantPoolArray* constant_pool) { 456 ConstantPoolArray* constant_pool) {
457 Code* target = GetTargetAtAddress(address, constant_pool); 457 Code* target = GetTargetAtAddress(address, constant_pool);
458 458
459 // Don't clear debug break inline cache as it will remove the break point. 459 // Don't clear debug break inline cache as it will remove the break point.
460 if (target->is_debug_stub()) return; 460 if (target->is_debug_stub()) return;
461 461
(...skipping 2617 matching lines...) Expand 10 before | Expand all | Expand 10 after
3079 #undef ADDR 3079 #undef ADDR
3080 }; 3080 };
3081 3081
3082 3082
3083 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3083 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3084 return IC_utilities[id]; 3084 return IC_utilities[id];
3085 } 3085 }
3086 3086
3087 3087
3088 } } // namespace v8::internal 3088 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698