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

Side by Side Diff: src/handles.cc

Issue 8305001: Introduce HTransitionElementsKind instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits fixed 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/handles.h ('k') | src/hydrogen.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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 uint32_t index, 497 uint32_t index,
498 Handle<Object> value, 498 Handle<Object> value,
499 StrictModeFlag strict_mode) { 499 StrictModeFlag strict_mode) {
500 ASSERT(!object->HasExternalArrayElements()); 500 ASSERT(!object->HasExternalArrayElements());
501 CALL_HEAP_FUNCTION(object->GetIsolate(), 501 CALL_HEAP_FUNCTION(object->GetIsolate(),
502 object->SetElement(index, *value, strict_mode, false), 502 object->SetElement(index, *value, strict_mode, false),
503 Object); 503 Object);
504 } 504 }
505 505
506 506
507 Handle<Object> TransitionElementsKind(Handle<JSObject> object,
508 ElementsKind to_kind) {
509 CALL_HEAP_FUNCTION(object->GetIsolate(),
510 object->TransitionElementsKind(to_kind),
511 Object);
512 }
513
514
507 Handle<JSObject> Copy(Handle<JSObject> obj) { 515 Handle<JSObject> Copy(Handle<JSObject> obj) {
508 Isolate* isolate = obj->GetIsolate(); 516 Isolate* isolate = obj->GetIsolate();
509 CALL_HEAP_FUNCTION(isolate, 517 CALL_HEAP_FUNCTION(isolate,
510 isolate->heap()->CopyJSObject(*obj), JSObject); 518 isolate->heap()->CopyJSObject(*obj), JSObject);
511 } 519 }
512 520
513 521
514 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) { 522 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) {
515 CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object); 523 CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object);
516 } 524 }
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 950
943 bool CompileOptimized(Handle<JSFunction> function, 951 bool CompileOptimized(Handle<JSFunction> function,
944 int osr_ast_id, 952 int osr_ast_id,
945 ClearExceptionFlag flag) { 953 ClearExceptionFlag flag) {
946 CompilationInfo info(function); 954 CompilationInfo info(function);
947 info.SetOptimizing(osr_ast_id); 955 info.SetOptimizing(osr_ast_id);
948 return CompileLazyHelper(&info, flag); 956 return CompileLazyHelper(&info, flag);
949 } 957 }
950 958
951 } } // namespace v8::internal 959 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698