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

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

Issue 3151037: Change code contains function to allow a return address just after the last instruction (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 4 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 | « no previous file | test/cctest/cctest.status » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 2918 matching lines...) Expand 10 before | Expand all | Expand 10 after
2929 } 2929 }
2930 2930
2931 2931
2932 byte* Code::entry() { 2932 byte* Code::entry() {
2933 return instruction_start(); 2933 return instruction_start();
2934 } 2934 }
2935 2935
2936 2936
2937 bool Code::contains(byte* pc) { 2937 bool Code::contains(byte* pc) {
2938 return (instruction_start() <= pc) && 2938 return (instruction_start() <= pc) &&
2939 (pc < instruction_start() + instruction_size()); 2939 (pc <= instruction_start() + instruction_size());
2940 } 2940 }
2941 2941
2942 2942
2943 ACCESSORS(JSArray, length, Object, kLengthOffset) 2943 ACCESSORS(JSArray, length, Object, kLengthOffset)
2944 2944
2945 2945
2946 ACCESSORS(JSRegExp, data, Object, kDataOffset) 2946 ACCESSORS(JSRegExp, data, Object, kDataOffset)
2947 2947
2948 2948
2949 JSRegExp::Type JSRegExp::TypeTag() { 2949 JSRegExp::Type JSRegExp::TypeTag() {
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
3466 #undef WRITE_INT_FIELD 3466 #undef WRITE_INT_FIELD
3467 #undef READ_SHORT_FIELD 3467 #undef READ_SHORT_FIELD
3468 #undef WRITE_SHORT_FIELD 3468 #undef WRITE_SHORT_FIELD
3469 #undef READ_BYTE_FIELD 3469 #undef READ_BYTE_FIELD
3470 #undef WRITE_BYTE_FIELD 3470 #undef WRITE_BYTE_FIELD
3471 3471
3472 3472
3473 } } // namespace v8::internal 3473 } } // namespace v8::internal
3474 3474
3475 #endif // V8_OBJECTS_INL_H_ 3475 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698