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

Side by Side Diff: src/runtime.cc

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level 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
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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 } 1028 }
1029 return isolate->heap()->undefined_value(); 1029 return isolate->heap()->undefined_value();
1030 } 1030 }
1031 1031
1032 1032
1033 // Initializes a typed array from an array-like object. 1033 // Initializes a typed array from an array-like object.
1034 // If an array-like object happens to be a typed array of the same type, 1034 // If an array-like object happens to be a typed array of the same type,
1035 // initializes backing store using memove. 1035 // initializes backing store using memove.
1036 // 1036 //
1037 // Returns true if backing store was initialized or false otherwise. 1037 // Returns true if backing store was initialized or false otherwise.
1038 // Work around for GCC 4.4.6
1039 #pragma GCC diagnostic ignored "-Wuninitialized"
1038 RUNTIME_FUNCTION(Runtime_TypedArrayInitializeFromArrayLike) { 1040 RUNTIME_FUNCTION(Runtime_TypedArrayInitializeFromArrayLike) {
1039 HandleScope scope(isolate); 1041 HandleScope scope(isolate);
1040 DCHECK(args.length() == 4); 1042 DCHECK(args.length() == 4);
1041 CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, holder, 0); 1043 CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, holder, 0);
1042 CONVERT_SMI_ARG_CHECKED(arrayId, 1); 1044 CONVERT_SMI_ARG_CHECKED(arrayId, 1);
1043 CONVERT_ARG_HANDLE_CHECKED(Object, source, 2); 1045 CONVERT_ARG_HANDLE_CHECKED(Object, source, 2);
1044 CONVERT_NUMBER_ARG_HANDLE_CHECKED(length_obj, 3); 1046 CONVERT_NUMBER_ARG_HANDLE_CHECKED(length_obj, 3);
1045 1047
1046 RUNTIME_ASSERT(arrayId >= Runtime::ARRAY_ID_FIRST && 1048 RUNTIME_ASSERT(arrayId >= Runtime::ARRAY_ID_FIRST &&
1047 arrayId <= Runtime::ARRAY_ID_LAST); 1049 arrayId <= Runtime::ARRAY_ID_LAST);
(...skipping 14601 matching lines...) Expand 10 before | Expand all | Expand 10 after
15649 } 15651 }
15650 return NULL; 15652 return NULL;
15651 } 15653 }
15652 15654
15653 15655
15654 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15656 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15655 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15657 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15656 } 15658 }
15657 15659
15658 } } // namespace v8::internal 15660 } } // namespace v8::internal
OLDNEW
« src/hydrogen-bch.cc ('K') | « src/regexp-macro-assembler.h ('k') | src/sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698