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

Side by Side Diff: src/factory.cc

Issue 23495011: Handlify JSObject::SetIdentityHash method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/factory.h ('k') | src/objects.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 1183
1184 1184
1185 void Factory::BecomeJSFunction(Handle<JSReceiver> object) { 1185 void Factory::BecomeJSFunction(Handle<JSReceiver> object) {
1186 CALL_HEAP_FUNCTION_VOID( 1186 CALL_HEAP_FUNCTION_VOID(
1187 isolate(), 1187 isolate(),
1188 isolate()->heap()->ReinitializeJSReceiver( 1188 isolate()->heap()->ReinitializeJSReceiver(
1189 *object, JS_FUNCTION_TYPE, JSFunction::kSize)); 1189 *object, JS_FUNCTION_TYPE, JSFunction::kSize));
1190 } 1190 }
1191 1191
1192 1192
1193 void Factory::SetIdentityHash(Handle<JSObject> object, Smi* hash) {
1194 CALL_HEAP_FUNCTION_VOID(
1195 isolate(),
1196 object->SetIdentityHash(hash, ALLOW_CREATION));
1197 }
1198
1199
1200 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( 1193 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
1201 Handle<String> name, 1194 Handle<String> name,
1202 int number_of_literals, 1195 int number_of_literals,
1203 bool is_generator, 1196 bool is_generator,
1204 Handle<Code> code, 1197 Handle<Code> code,
1205 Handle<ScopeInfo> scope_info) { 1198 Handle<ScopeInfo> scope_info) {
1206 Handle<SharedFunctionInfo> shared = NewSharedFunctionInfo(name); 1199 Handle<SharedFunctionInfo> shared = NewSharedFunctionInfo(name);
1207 shared->set_code(*code); 1200 shared->set_code(*code);
1208 shared->set_scope_info(*scope_info); 1201 shared->set_scope_info(*scope_info);
1209 int literals_array_size = number_of_literals; 1202 int literals_array_size = number_of_literals;
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 return Handle<Object>::null(); 1618 return Handle<Object>::null();
1626 } 1619 }
1627 1620
1628 1621
1629 Handle<Object> Factory::ToBoolean(bool value) { 1622 Handle<Object> Factory::ToBoolean(bool value) {
1630 return value ? true_value() : false_value(); 1623 return value ? true_value() : false_value();
1631 } 1624 }
1632 1625
1633 1626
1634 } } // namespace v8::internal 1627 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698