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

Side by Side Diff: src/objects.cc

Issue 13656: Fix build (someone tell gcc you can't take the address of a static... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years 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/jsregexp.cc ('k') | 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 30 matching lines...) Expand all
41 #include "disassembler.h" 41 #include "disassembler.h"
42 #endif 42 #endif
43 43
44 namespace v8 { namespace internal { 44 namespace v8 { namespace internal {
45 45
46 // Getters and setters are stored in a fixed array property. These are 46 // Getters and setters are stored in a fixed array property. These are
47 // constants for their indices. 47 // constants for their indices.
48 const int kGetterIndex = 0; 48 const int kGetterIndex = 0;
49 const int kSetterIndex = 1; 49 const int kSetterIndex = 1;
50 50
51 const int String::kMaxAsciiCharCode;
52 const int String::kMaxUC16CharCode;
53
54 bool Object::IsInstanceOf(FunctionTemplateInfo* expected) { 51 bool Object::IsInstanceOf(FunctionTemplateInfo* expected) {
55 // There is a constraint on the object; check 52 // There is a constraint on the object; check
56 if (!this->IsJSObject()) return false; 53 if (!this->IsJSObject()) return false;
57 // Fetch the constructor function of the object 54 // Fetch the constructor function of the object
58 Object* cons_obj = JSObject::cast(this)->map()->constructor(); 55 Object* cons_obj = JSObject::cast(this)->map()->constructor();
59 if (!cons_obj->IsJSFunction()) return false; 56 if (!cons_obj->IsJSFunction()) return false;
60 JSFunction* fun = JSFunction::cast(cons_obj); 57 JSFunction* fun = JSFunction::cast(cons_obj);
61 // Iterate through the chain of inheriting function templates to 58 // Iterate through the chain of inheriting function templates to
62 // see if the required one occurs. 59 // see if the required one occurs.
63 for (Object* type = fun->shared()->function_data(); 60 for (Object* type = fun->shared()->function_data();
(...skipping 6906 matching lines...) Expand 10 before | Expand all | Expand 10 after
6970 // No break point. 6967 // No break point.
6971 if (break_point_objects()->IsUndefined()) return 0; 6968 if (break_point_objects()->IsUndefined()) return 0;
6972 // Single beak point. 6969 // Single beak point.
6973 if (!break_point_objects()->IsFixedArray()) return 1; 6970 if (!break_point_objects()->IsFixedArray()) return 1;
6974 // Multiple break points. 6971 // Multiple break points.
6975 return FixedArray::cast(break_point_objects())->length(); 6972 return FixedArray::cast(break_point_objects())->length();
6976 } 6973 }
6977 6974
6978 6975
6979 } } // namespace v8::internal 6976 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698