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

Side by Side Diff: src/runtime.cc

Issue 561133005: Change the order of arguments of the (One|Two)ByteSeqStringSetChar intrinsic. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/mips64/full-codegen-mips64.cc ('k') | src/string.js » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 15397 matching lines...) Expand 10 before | Expand all | Expand 10 after
15408 if (std::isinf(args.number_at(1))) return isolate->heap()->empty_string(); 15408 if (std::isinf(args.number_at(1))) return isolate->heap()->empty_string();
15409 Object* code = __RT_impl_Runtime_StringCharCodeAtRT(args, isolate); 15409 Object* code = __RT_impl_Runtime_StringCharCodeAtRT(args, isolate);
15410 if (code->IsNaN()) return isolate->heap()->empty_string(); 15410 if (code->IsNaN()) return isolate->heap()->empty_string();
15411 return __RT_impl_Runtime_CharFromCode(Arguments(1, &code), isolate); 15411 return __RT_impl_Runtime_CharFromCode(Arguments(1, &code), isolate);
15412 } 15412 }
15413 15413
15414 15414
15415 RUNTIME_FUNCTION(RuntimeReference_OneByteSeqStringSetChar) { 15415 RUNTIME_FUNCTION(RuntimeReference_OneByteSeqStringSetChar) {
15416 SealHandleScope shs(isolate); 15416 SealHandleScope shs(isolate);
15417 DCHECK(args.length() == 3); 15417 DCHECK(args.length() == 3);
15418 CONVERT_ARG_CHECKED(SeqOneByteString, string, 0); 15418 CONVERT_INT32_ARG_CHECKED(index, 0);
15419 CONVERT_INT32_ARG_CHECKED(index, 1); 15419 CONVERT_INT32_ARG_CHECKED(value, 1);
15420 CONVERT_INT32_ARG_CHECKED(value, 2); 15420 CONVERT_ARG_CHECKED(SeqOneByteString, string, 2);
15421 string->SeqOneByteStringSet(index, value); 15421 string->SeqOneByteStringSet(index, value);
15422 return string; 15422 return string;
15423 } 15423 }
15424 15424
15425 15425
15426 RUNTIME_FUNCTION(RuntimeReference_TwoByteSeqStringSetChar) { 15426 RUNTIME_FUNCTION(RuntimeReference_TwoByteSeqStringSetChar) {
15427 SealHandleScope shs(isolate); 15427 SealHandleScope shs(isolate);
15428 DCHECK(args.length() == 3); 15428 DCHECK(args.length() == 3);
15429 CONVERT_ARG_CHECKED(SeqTwoByteString, string, 0); 15429 CONVERT_INT32_ARG_CHECKED(index, 0);
15430 CONVERT_INT32_ARG_CHECKED(index, 1); 15430 CONVERT_INT32_ARG_CHECKED(value, 1);
15431 CONVERT_INT32_ARG_CHECKED(value, 2); 15431 CONVERT_ARG_CHECKED(SeqTwoByteString, string, 2);
15432 string->SeqTwoByteStringSet(index, value); 15432 string->SeqTwoByteStringSet(index, value);
15433 return string; 15433 return string;
15434 } 15434 }
15435 15435
15436 15436
15437 RUNTIME_FUNCTION(RuntimeReference_ObjectEquals) { 15437 RUNTIME_FUNCTION(RuntimeReference_ObjectEquals) {
15438 SealHandleScope shs(isolate); 15438 SealHandleScope shs(isolate);
15439 DCHECK(args.length() == 2); 15439 DCHECK(args.length() == 2);
15440 CONVERT_ARG_CHECKED(Object, obj1, 0); 15440 CONVERT_ARG_CHECKED(Object, obj1, 0);
15441 CONVERT_ARG_CHECKED(Object, obj2, 1); 15441 CONVERT_ARG_CHECKED(Object, obj2, 1);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
15678 } 15678 }
15679 return NULL; 15679 return NULL;
15680 } 15680 }
15681 15681
15682 15682
15683 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15683 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15684 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15684 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15685 } 15685 }
15686 15686
15687 } } // namespace v8::internal 15687 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698