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

Side by Side Diff: src/builtins.cc

Issue 15012016: small misspelling fixes. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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/bignum-dtoa.cc ('k') | src/compilation-cache.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 if (len > elms->length()) { 821 if (len > elms->length()) {
822 return CallJsBuiltin(isolate, "ArraySlice", args); 822 return CallJsBuiltin(isolate, "ArraySlice", args);
823 } 823 }
824 } 824 }
825 825
826 JSObject* object = JSObject::cast(receiver); 826 JSObject* object = JSObject::cast(receiver);
827 827
828 ASSERT(len >= 0); 828 ASSERT(len >= 0);
829 int n_arguments = args.length() - 1; 829 int n_arguments = args.length() - 1;
830 830
831 // Note carefully choosen defaults---if argument is missing, 831 // Note carefuly choosen defaults---if argument is missing,
832 // it's undefined which gets converted to 0 for relative_start 832 // it's undefined which gets converted to 0 for relative_start
833 // and to len for relative_end. 833 // and to len for relative_end.
834 int relative_start = 0; 834 int relative_start = 0;
835 int relative_end = len; 835 int relative_end = len;
836 if (n_arguments > 0) { 836 if (n_arguments > 0) {
837 Object* arg1 = args[1]; 837 Object* arg1 = args[1];
838 if (arg1->IsSmi()) { 838 if (arg1->IsSmi()) {
839 relative_start = Smi::cast(arg1)->value(); 839 relative_start = Smi::cast(arg1)->value();
840 } else if (arg1->IsHeapNumber()) { 840 } else if (arg1->IsHeapNumber()) {
841 double start = HeapNumber::cast(arg1)->value(); 841 double start = HeapNumber::cast(arg1)->value();
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 return Handle<Code>(code_address); \ 1878 return Handle<Code>(code_address); \
1879 } 1879 }
1880 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 1880 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
1881 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 1881 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
1882 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 1882 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
1883 #undef DEFINE_BUILTIN_ACCESSOR_C 1883 #undef DEFINE_BUILTIN_ACCESSOR_C
1884 #undef DEFINE_BUILTIN_ACCESSOR_A 1884 #undef DEFINE_BUILTIN_ACCESSOR_A
1885 1885
1886 1886
1887 } } // namespace v8::internal 1887 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bignum-dtoa.cc ('k') | src/compilation-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698