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

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

Issue 7148014: Ensure that bound functions does not have a prototype (fixes issue 794) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 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/objects.h ('k') | src/runtime.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 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 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after
3431 } 3431 }
3432 3432
3433 3433
3434 void SharedFunctionInfo::set_native(bool value) { 3434 void SharedFunctionInfo::set_native(bool value) {
3435 set_compiler_hints(BooleanBit::set(compiler_hints(), 3435 set_compiler_hints(BooleanBit::set(compiler_hints(),
3436 kNative, 3436 kNative,
3437 value)); 3437 value));
3438 } 3438 }
3439 3439
3440 3440
3441 bool SharedFunctionInfo::bound() {
3442 return BooleanBit::get(compiler_hints(), kBoundFunction);
3443 }
3444
3445
3446 void SharedFunctionInfo::set_bound(bool value) {
3447 set_compiler_hints(BooleanBit::set(compiler_hints(),
3448 kBoundFunction,
3449 value));
3450 }
3451
3452
3441 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) 3453 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
3442 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) 3454 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
3443 3455
3444 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) 3456 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset)
3445 3457
3446 bool Script::HasValidSource() { 3458 bool Script::HasValidSource() {
3447 Object* src = this->source(); 3459 Object* src = this->source();
3448 if (!src->IsString()) return true; 3460 if (!src->IsString()) return true;
3449 String* src_str = String::cast(src); 3461 String* src_str = String::cast(src);
3450 if (!StringShape(src_str).IsExternal()) return true; 3462 if (!StringShape(src_str).IsExternal()) return true;
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
4410 #undef WRITE_INT_FIELD 4422 #undef WRITE_INT_FIELD
4411 #undef READ_SHORT_FIELD 4423 #undef READ_SHORT_FIELD
4412 #undef WRITE_SHORT_FIELD 4424 #undef WRITE_SHORT_FIELD
4413 #undef READ_BYTE_FIELD 4425 #undef READ_BYTE_FIELD
4414 #undef WRITE_BYTE_FIELD 4426 #undef WRITE_BYTE_FIELD
4415 4427
4416 4428
4417 } } // namespace v8::internal 4429 } } // namespace v8::internal
4418 4430
4419 #endif // V8_OBJECTS_INL_H_ 4431 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698