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

Side by Side Diff: src/handles.cc

Issue 7172030: Revert "Merge arguments branch to bleeding merge." (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/full-codegen.cc ('k') | src/heap.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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 StrictModeFlag strict_mode) { 500 StrictModeFlag strict_mode) {
501 if (object->HasExternalArrayElements()) { 501 if (object->HasExternalArrayElements()) {
502 if (!value->IsSmi() && !value->IsHeapNumber() && !value->IsUndefined()) { 502 if (!value->IsSmi() && !value->IsHeapNumber() && !value->IsUndefined()) {
503 bool has_exception; 503 bool has_exception;
504 Handle<Object> number = Execution::ToNumber(value, &has_exception); 504 Handle<Object> number = Execution::ToNumber(value, &has_exception);
505 if (has_exception) return Handle<Object>(); 505 if (has_exception) return Handle<Object>();
506 value = number; 506 value = number;
507 } 507 }
508 } 508 }
509 CALL_HEAP_FUNCTION(object->GetIsolate(), 509 CALL_HEAP_FUNCTION(object->GetIsolate(),
510 object->SetElement(index, *value, strict_mode, true), 510 object->SetElement(index, *value, strict_mode), Object);
511 Object);
512 } 511 }
513 512
514 513
515 Handle<Object> SetOwnElement(Handle<JSObject> object, 514 Handle<Object> SetOwnElement(Handle<JSObject> object,
516 uint32_t index, 515 uint32_t index,
517 Handle<Object> value, 516 Handle<Object> value,
518 StrictModeFlag strict_mode) { 517 StrictModeFlag strict_mode) {
519 ASSERT(!object->HasExternalArrayElements()); 518 ASSERT(!object->HasExternalArrayElements());
520 CALL_HEAP_FUNCTION(object->GetIsolate(), 519 CALL_HEAP_FUNCTION(object->GetIsolate(),
521 object->SetElement(index, *value, strict_mode, false), 520 object->SetElement(index, *value, strict_mode, false),
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 969
971 bool CompileOptimized(Handle<JSFunction> function, 970 bool CompileOptimized(Handle<JSFunction> function,
972 int osr_ast_id, 971 int osr_ast_id,
973 ClearExceptionFlag flag) { 972 ClearExceptionFlag flag) {
974 CompilationInfo info(function); 973 CompilationInfo info(function);
975 info.SetOptimizing(osr_ast_id); 974 info.SetOptimizing(osr_ast_id);
976 return CompileLazyHelper(&info, flag); 975 return CompileLazyHelper(&info, flag);
977 } 976 }
978 977
979 } } // namespace v8::internal 978 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698