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

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

Issue 7085034: Reapply change to Pass undefined to JS builtins when called with (Closed) Base URL: https://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 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 } 3302 }
3303 3303
3304 3304
3305 void SharedFunctionInfo::set_strict_mode(bool value) { 3305 void SharedFunctionInfo::set_strict_mode(bool value) {
3306 set_compiler_hints(BooleanBit::set(compiler_hints(), 3306 set_compiler_hints(BooleanBit::set(compiler_hints(),
3307 kStrictModeFunction, 3307 kStrictModeFunction,
3308 value)); 3308 value));
3309 } 3309 }
3310 3310
3311 3311
3312 bool SharedFunctionInfo::es5_native() { 3312 bool SharedFunctionInfo::native() {
3313 return BooleanBit::get(compiler_hints(), kES5Native); 3313 return BooleanBit::get(compiler_hints(), kNative);
3314 } 3314 }
3315 3315
3316 3316
3317 void SharedFunctionInfo::set_es5_native(bool value) { 3317 void SharedFunctionInfo::set_native(bool value) {
3318 set_compiler_hints(BooleanBit::set(compiler_hints(), 3318 set_compiler_hints(BooleanBit::set(compiler_hints(),
3319 kES5Native, 3319 kNative,
3320 value)); 3320 value));
3321 } 3321 }
3322 3322
3323 3323
3324 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) 3324 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
3325 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) 3325 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
3326 3326
3327 bool Script::HasValidSource() { 3327 bool Script::HasValidSource() {
3328 Object* src = this->source(); 3328 Object* src = this->source();
3329 if (!src->IsString()) return true; 3329 if (!src->IsString()) return true;
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
4314 #undef WRITE_INT_FIELD 4314 #undef WRITE_INT_FIELD
4315 #undef READ_SHORT_FIELD 4315 #undef READ_SHORT_FIELD
4316 #undef WRITE_SHORT_FIELD 4316 #undef WRITE_SHORT_FIELD
4317 #undef READ_BYTE_FIELD 4317 #undef READ_BYTE_FIELD
4318 #undef WRITE_BYTE_FIELD 4318 #undef WRITE_BYTE_FIELD
4319 4319
4320 4320
4321 } } // namespace v8::internal 4321 } } // namespace v8::internal
4322 4322
4323 #endif // V8_OBJECTS_INL_H_ 4323 #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