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

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

Issue 23567003: Added a DependentCode field to AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment updates Created 7 years, 3 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-snapshot-generator.cc ('k') | src/objects.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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 IMMOVABLE_UNIQUE_VALUE_ID(free_space_map) 345 IMMOVABLE_UNIQUE_VALUE_ID(free_space_map)
346 IMMOVABLE_UNIQUE_VALUE_ID(minus_zero_value) 346 IMMOVABLE_UNIQUE_VALUE_ID(minus_zero_value)
347 IMMOVABLE_UNIQUE_VALUE_ID(nan_value) 347 IMMOVABLE_UNIQUE_VALUE_ID(nan_value)
348 IMMOVABLE_UNIQUE_VALUE_ID(undefined_value) 348 IMMOVABLE_UNIQUE_VALUE_ID(undefined_value)
349 IMMOVABLE_UNIQUE_VALUE_ID(null_value) 349 IMMOVABLE_UNIQUE_VALUE_ID(null_value)
350 IMMOVABLE_UNIQUE_VALUE_ID(true_value) 350 IMMOVABLE_UNIQUE_VALUE_ID(true_value)
351 IMMOVABLE_UNIQUE_VALUE_ID(false_value) 351 IMMOVABLE_UNIQUE_VALUE_ID(false_value)
352 IMMOVABLE_UNIQUE_VALUE_ID(the_hole_value) 352 IMMOVABLE_UNIQUE_VALUE_ID(the_hole_value)
353 IMMOVABLE_UNIQUE_VALUE_ID(empty_string) 353 IMMOVABLE_UNIQUE_VALUE_ID(empty_string)
354 IMMOVABLE_UNIQUE_VALUE_ID(empty_fixed_array)
354 355
355 #undef IMMOVABLE_UNIQUE_VALUE_ID 356 #undef IMMOVABLE_UNIQUE_VALUE_ID
356 357
357 private: 358 private:
358 Address raw_address_; 359 Address raw_address_;
359 360
360 explicit UniqueValueId(Object* object) { 361 explicit UniqueValueId(Object* object) {
361 raw_address_ = reinterpret_cast<Address>(object); 362 raw_address_ = reinterpret_cast<Address>(object);
362 ASSERT(IsInitialized()); 363 ASSERT(IsInitialized());
363 } 364 }
(...skipping 2995 matching lines...) Expand 10 before | Expand all | Expand 10 after
3359 3360
3360 ASSERT(!handle_.is_null()); 3361 ASSERT(!handle_.is_null());
3361 Heap* heap = isolate()->heap(); 3362 Heap* heap = isolate()->heap();
3362 ASSERT(unique_id_ != UniqueValueId::minus_zero_value(heap)); 3363 ASSERT(unique_id_ != UniqueValueId::minus_zero_value(heap));
3363 ASSERT(unique_id_ != UniqueValueId::nan_value(heap)); 3364 ASSERT(unique_id_ != UniqueValueId::nan_value(heap));
3364 return unique_id_ == UniqueValueId::undefined_value(heap) || 3365 return unique_id_ == UniqueValueId::undefined_value(heap) ||
3365 unique_id_ == UniqueValueId::null_value(heap) || 3366 unique_id_ == UniqueValueId::null_value(heap) ||
3366 unique_id_ == UniqueValueId::true_value(heap) || 3367 unique_id_ == UniqueValueId::true_value(heap) ||
3367 unique_id_ == UniqueValueId::false_value(heap) || 3368 unique_id_ == UniqueValueId::false_value(heap) ||
3368 unique_id_ == UniqueValueId::the_hole_value(heap) || 3369 unique_id_ == UniqueValueId::the_hole_value(heap) ||
3369 unique_id_ == UniqueValueId::empty_string(heap); 3370 unique_id_ == UniqueValueId::empty_string(heap) ||
3371 unique_id_ == UniqueValueId::empty_fixed_array(heap);
3370 } 3372 }
3371 3373
3372 bool IsCell() const { 3374 bool IsCell() const {
3373 return is_cell_; 3375 return is_cell_;
3374 } 3376 }
3375 3377
3376 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 3378 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
3377 return Representation::None(); 3379 return Representation::None();
3378 } 3380 }
3379 3381
(...skipping 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after
5664 JSArray::kLengthOffset, 5666 JSArray::kLengthOffset,
5665 IsFastElementsKind(elements_kind) && 5667 IsFastElementsKind(elements_kind) &&
5666 FLAG_track_fields 5668 FLAG_track_fields
5667 ? Representation::Smi() : Representation::Tagged()); 5669 ? Representation::Smi() : Representation::Tagged());
5668 } 5670 }
5669 5671
5670 static HObjectAccess ForAllocationSiteTransitionInfo() { 5672 static HObjectAccess ForAllocationSiteTransitionInfo() {
5671 return HObjectAccess(kInobject, AllocationSite::kTransitionInfoOffset); 5673 return HObjectAccess(kInobject, AllocationSite::kTransitionInfoOffset);
5672 } 5674 }
5673 5675
5676 static HObjectAccess ForAllocationSiteDependentCode() {
5677 return HObjectAccess(kInobject, AllocationSite::kDependentCodeOffset);
5678 }
5679
5674 static HObjectAccess ForAllocationSiteWeakNext() { 5680 static HObjectAccess ForAllocationSiteWeakNext() {
5675 return HObjectAccess(kInobject, AllocationSite::kWeakNextOffset); 5681 return HObjectAccess(kInobject, AllocationSite::kWeakNextOffset);
5676 } 5682 }
5677 5683
5678 static HObjectAccess ForAllocationSiteList() { 5684 static HObjectAccess ForAllocationSiteList() {
5679 return HObjectAccess(kExternalMemory, 0, Representation::Tagged()); 5685 return HObjectAccess(kExternalMemory, 0, Representation::Tagged());
5680 } 5686 }
5681 5687
5682 static HObjectAccess ForFixedArrayLength() { 5688 static HObjectAccess ForFixedArrayLength() {
5683 return HObjectAccess( 5689 return HObjectAccess(
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
7034 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7040 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7035 }; 7041 };
7036 7042
7037 7043
7038 #undef DECLARE_INSTRUCTION 7044 #undef DECLARE_INSTRUCTION
7039 #undef DECLARE_CONCRETE_INSTRUCTION 7045 #undef DECLARE_CONCRETE_INSTRUCTION
7040 7046
7041 } } // namespace v8::internal 7047 } } // namespace v8::internal
7042 7048
7043 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7049 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698