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

Side by Side Diff: src/objects-inl.h

Issue 7969013: Fix pc to code cache so it can cope with a pointer to the start of the code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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
« src/frames-inl.h ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3830 matching lines...) Expand 10 before | Expand all | Expand 10 after
3841 int Code::relocation_size() { 3841 int Code::relocation_size() {
3842 return unchecked_relocation_info()->length(); 3842 return unchecked_relocation_info()->length();
3843 } 3843 }
3844 3844
3845 3845
3846 byte* Code::entry() { 3846 byte* Code::entry() {
3847 return instruction_start(); 3847 return instruction_start();
3848 } 3848 }
3849 3849
3850 3850
3851 bool Code::contains(byte* pc) { 3851 bool Code::contains(byte* inner_pointer) {
3852 return (instruction_start() <= pc) && 3852 return (address() <= inner_pointer) && (inner_pointer <= address() + Size());
3853 (pc <= instruction_start() + instruction_size());
3854 } 3853 }
3855 3854
3856 3855
3857 ACCESSORS(JSArray, length, Object, kLengthOffset) 3856 ACCESSORS(JSArray, length, Object, kLengthOffset)
3858 3857
3859 3858
3860 ACCESSORS(JSRegExp, data, Object, kDataOffset) 3859 ACCESSORS(JSRegExp, data, Object, kDataOffset)
3861 3860
3862 3861
3863 JSRegExp::Type JSRegExp::TypeTag() { 3862 JSRegExp::Type JSRegExp::TypeTag() {
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
4521 #undef WRITE_INT_FIELD 4520 #undef WRITE_INT_FIELD
4522 #undef READ_SHORT_FIELD 4521 #undef READ_SHORT_FIELD
4523 #undef WRITE_SHORT_FIELD 4522 #undef WRITE_SHORT_FIELD
4524 #undef READ_BYTE_FIELD 4523 #undef READ_BYTE_FIELD
4525 #undef WRITE_BYTE_FIELD 4524 #undef WRITE_BYTE_FIELD
4526 4525
4527 4526
4528 } } // namespace v8::internal 4527 } } // namespace v8::internal
4529 4528
4530 #endif // V8_OBJECTS_INL_H_ 4529 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/frames-inl.h ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698