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

Side by Side Diff: src/api.cc

Issue 7085025: Fix building with profilingsupport=off (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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/SConscript ('k') | src/heap.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 i::Handle<i::TypeSwitchInfo> obj = 918 i::Handle<i::TypeSwitchInfo> obj =
919 i::Handle<i::TypeSwitchInfo>::cast(struct_obj); 919 i::Handle<i::TypeSwitchInfo>::cast(struct_obj);
920 obj->set_types(*vector); 920 obj->set_types(*vector);
921 return Utils::ToLocal(obj); 921 return Utils::ToLocal(obj);
922 } 922 }
923 923
924 924
925 int TypeSwitch::match(v8::Handle<Value> value) { 925 int TypeSwitch::match(v8::Handle<Value> value) {
926 i::Isolate* isolate = i::Isolate::Current(); 926 i::Isolate* isolate = i::Isolate::Current();
927 LOG_API(isolate, "TypeSwitch::match"); 927 LOG_API(isolate, "TypeSwitch::match");
928 USE(isolate);
928 i::Handle<i::Object> obj = Utils::OpenHandle(*value); 929 i::Handle<i::Object> obj = Utils::OpenHandle(*value);
929 i::Handle<i::TypeSwitchInfo> info = Utils::OpenHandle(this); 930 i::Handle<i::TypeSwitchInfo> info = Utils::OpenHandle(this);
930 i::FixedArray* types = i::FixedArray::cast(info->types()); 931 i::FixedArray* types = i::FixedArray::cast(info->types());
931 for (int i = 0; i < types->length(); i++) { 932 for (int i = 0; i < types->length(); i++) {
932 if (obj->IsInstanceOf(i::FunctionTemplateInfo::cast(types->get(i)))) 933 if (obj->IsInstanceOf(i::FunctionTemplateInfo::cast(types->get(i))))
933 return i + 1; 934 return i + 1;
934 } 935 }
935 return 0; 936 return 0;
936 } 937 }
937 938
(...skipping 2447 matching lines...) Expand 10 before | Expand all | Expand 10 after
3385 raw_result = *returned; 3386 raw_result = *returned;
3386 } 3387 }
3387 i::Handle<i::Object> result(raw_result); 3388 i::Handle<i::Object> result(raw_result);
3388 return Utils::ToLocal(result); 3389 return Utils::ToLocal(result);
3389 } 3390 }
3390 3391
3391 3392
3392 void Function::SetName(v8::Handle<v8::String> name) { 3393 void Function::SetName(v8::Handle<v8::String> name) {
3393 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); 3394 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
3394 ENTER_V8(isolate); 3395 ENTER_V8(isolate);
3396 USE(isolate);
3395 i::Handle<i::JSFunction> func = Utils::OpenHandle(this); 3397 i::Handle<i::JSFunction> func = Utils::OpenHandle(this);
3396 func->shared()->set_name(*Utils::OpenHandle(*name)); 3398 func->shared()->set_name(*Utils::OpenHandle(*name));
3397 } 3399 }
3398 3400
3399 3401
3400 Handle<Value> Function::GetName() const { 3402 Handle<Value> Function::GetName() const {
3401 i::Handle<i::JSFunction> func = Utils::OpenHandle(this); 3403 i::Handle<i::JSFunction> func = Utils::OpenHandle(this);
3402 return Utils::ToLocal(i::Handle<i::Object>(func->shared()->name())); 3404 return Utils::ToLocal(i::Handle<i::Object>(func->shared()->name()));
3403 } 3405 }
3404 3406
(...skipping 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after
5836 5838
5837 5839
5838 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 5840 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
5839 HandleScopeImplementer* scope_implementer = 5841 HandleScopeImplementer* scope_implementer =
5840 reinterpret_cast<HandleScopeImplementer*>(storage); 5842 reinterpret_cast<HandleScopeImplementer*>(storage);
5841 scope_implementer->IterateThis(v); 5843 scope_implementer->IterateThis(v);
5842 return storage + ArchiveSpacePerThread(); 5844 return storage + ArchiveSpacePerThread();
5843 } 5845 }
5844 5846
5845 } } // namespace v8::internal 5847 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698