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

Side by Side Diff: src/builtins.cc

Issue 551047: Fix ARM build. (Closed)
Patch Set: Created 10 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 24 matching lines...) Expand all
35 35
36 namespace v8 { 36 namespace v8 {
37 namespace internal { 37 namespace internal {
38 38
39 namespace { 39 namespace {
40 40
41 // Arguments object passed to C++ builtins. 41 // Arguments object passed to C++ builtins.
42 template <BuiltinExtraArguments extra_args> 42 template <BuiltinExtraArguments extra_args>
43 class BuiltinArguments : public Arguments { 43 class BuiltinArguments : public Arguments {
44 public: 44 public:
45 BuiltinArguments(int length, Object** arguments)
46 : Arguments(length, arguments) { }
47
45 Object*& operator[] (int index) { 48 Object*& operator[] (int index) {
46 ASSERT(index < length()); 49 ASSERT(index < length());
47 return Arguments::operator[](index); 50 return Arguments::operator[](index);
48 } 51 }
49 52
50 template <class S> Handle<S> at(int index) { 53 template <class S> Handle<S> at(int index) {
51 ASSERT(index < length()); 54 ASSERT(index < length());
52 return Arguments::at<S>(index); 55 return Arguments::at<S>(index);
53 } 56 }
54 57
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 if (entry->contains(pc)) { 908 if (entry->contains(pc)) {
906 return names_[i]; 909 return names_[i];
907 } 910 }
908 } 911 }
909 } 912 }
910 return NULL; 913 return NULL;
911 } 914 }
912 915
913 916
914 } } // namespace v8::internal 917 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698