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

Side by Side Diff: src/factory.h

Issue 8130002: Make accessors for oddball objects return Oddball* instead of Object*. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: split InitializeThreadLocal into two parts Created 9 years, 2 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/debug.cc ('k') | src/factory.cc » ('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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 JSRegExp::Type type, 442 JSRegExp::Type type,
443 Handle<String> source, 443 Handle<String> source,
444 JSRegExp::Flags flags, 444 JSRegExp::Flags flags,
445 int capture_count); 445 int capture_count);
446 446
447 // Returns the value for a known global constant (a property of the global 447 // Returns the value for a known global constant (a property of the global
448 // object which is neither configurable nor writable) like 'undefined'. 448 // object which is neither configurable nor writable) like 'undefined'.
449 // Returns a null handle when the given name is unknown. 449 // Returns a null handle when the given name is unknown.
450 Handle<Object> GlobalConstantFor(Handle<String> name); 450 Handle<Object> GlobalConstantFor(Handle<String> name);
451 451
452 // Converts the given boolean condition to JavaScript boolean value.
453 Handle<Object> ToBoolean(bool value);
454
452 private: 455 private:
453 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } 456 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); }
454 457
455 Handle<JSFunction> NewFunctionHelper(Handle<String> name, 458 Handle<JSFunction> NewFunctionHelper(Handle<String> name,
456 Handle<Object> prototype); 459 Handle<Object> prototype);
457 460
458 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( 461 Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
459 Handle<String> name, 462 Handle<String> name,
460 StrictModeFlag strict_mode); 463 StrictModeFlag strict_mode);
461 464
462 Handle<DescriptorArray> CopyAppendCallbackDescriptors( 465 Handle<DescriptorArray> CopyAppendCallbackDescriptors(
463 Handle<DescriptorArray> array, 466 Handle<DescriptorArray> array,
464 Handle<Object> descriptors); 467 Handle<Object> descriptors);
465 468
466 // Create a new map cache. 469 // Create a new map cache.
467 Handle<MapCache> NewMapCache(int at_least_space_for); 470 Handle<MapCache> NewMapCache(int at_least_space_for);
468 471
469 // Update the map cache in the global context with (keys, map) 472 // Update the map cache in the global context with (keys, map)
470 Handle<MapCache> AddToMapCache(Handle<Context> context, 473 Handle<MapCache> AddToMapCache(Handle<Context> context,
471 Handle<FixedArray> keys, 474 Handle<FixedArray> keys,
472 Handle<Map> map); 475 Handle<Map> map);
473 }; 476 };
474 477
475 478
476 } } // namespace v8::internal 479 } } // namespace v8::internal
477 480
478 #endif // V8_FACTORY_H_ 481 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698