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

Side by Side Diff: src/objects.h

Issue 52633003: Introduce raw accessors for type_feedback_info. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed default WriteBarrierMode. Created 7 years, 1 month 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.cc ('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 4997 matching lines...) Expand 10 before | Expand all | Expand 10 after
5008 // [relocation_info]: Code relocation information 5008 // [relocation_info]: Code relocation information
5009 DECL_ACCESSORS(relocation_info, ByteArray) 5009 DECL_ACCESSORS(relocation_info, ByteArray)
5010 void InvalidateRelocation(); 5010 void InvalidateRelocation();
5011 5011
5012 // [handler_table]: Fixed array containing offsets of exception handlers. 5012 // [handler_table]: Fixed array containing offsets of exception handlers.
5013 DECL_ACCESSORS(handler_table, FixedArray) 5013 DECL_ACCESSORS(handler_table, FixedArray)
5014 5014
5015 // [deoptimization_data]: Array containing data for deopt. 5015 // [deoptimization_data]: Array containing data for deopt.
5016 DECL_ACCESSORS(deoptimization_data, FixedArray) 5016 DECL_ACCESSORS(deoptimization_data, FixedArray)
5017 5017
5018 // [type_feedback_info]: This field stores various things, depending on the 5018 // [raw_type_feedback_info]: This field stores various things, depending on
5019 // kind of the code object. 5019 // the kind of the code object.
5020 // FUNCTION => type feedback information. 5020 // FUNCTION => type feedback information.
5021 // STUB => various things, e.g. a SMI 5021 // STUB => various things, e.g. a SMI
5022 // OPTIMIZED_FUNCTION => the next_code_link for optimized code list. 5022 // OPTIMIZED_FUNCTION => the next_code_link for optimized code list.
5023 DECL_ACCESSORS(type_feedback_info, Object) 5023 DECL_ACCESSORS(raw_type_feedback_info, Object)
5024 inline void InitializeTypeFeedbackInfoNoWriteBarrier(Object* value); 5024 inline Object* type_feedback_info();
5025 inline void set_type_feedback_info(
5026 Object* value, WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
5025 inline int stub_info(); 5027 inline int stub_info();
5026 inline void set_stub_info(int info); 5028 inline void set_stub_info(int info);
5027 5029
5028 // [next_code_link]: Link for lists of optimized or deoptimized code. 5030 // [next_code_link]: Link for lists of optimized or deoptimized code.
5029 // Note that storage for this field is overlapped with typefeedback_info. 5031 // Note that storage for this field is overlapped with typefeedback_info.
5030 DECL_ACCESSORS(next_code_link, Object) 5032 DECL_ACCESSORS(next_code_link, Object)
5031 5033
5032 // [gc_metadata]: Field used to hold GC related metadata. The contents of this 5034 // [gc_metadata]: Field used to hold GC related metadata. The contents of this
5033 // field does not have to be traced during garbage collection since 5035 // field does not have to be traced during garbage collection since
5034 // it is only used by the garbage collector itself. 5036 // it is only used by the garbage collector itself.
(...skipping 5405 matching lines...) Expand 10 before | Expand all | Expand 10 after
10440 } else { 10442 } else {
10441 value &= ~(1 << bit_position); 10443 value &= ~(1 << bit_position);
10442 } 10444 }
10443 return value; 10445 return value;
10444 } 10446 }
10445 }; 10447 };
10446 10448
10447 } } // namespace v8::internal 10449 } } // namespace v8::internal
10448 10450
10449 #endif // V8_OBJECTS_H_ 10451 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698